]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/shmc/lib/src/shmc.c
update
[l4.git] / l4 / pkg / shmc / lib / src / shmc.c
index c9fd270b89e5d1ff13a56f3d19dc021ea88cb5d4..b276064cb16d980e65f90f5e13e4ccc8d188aa06 100644 (file)
@@ -107,9 +107,9 @@ l4shmc_attach_to(const char *shm_name, l4_umword_t timeout_ms,
       return -L4_ENOENT;
     }
 
-  if (l4re_ns_query_to_srv(nssrv, "shm", shmarea->_shm_ds, timeout_ms))
+  if ((r = l4re_ns_query_to_srv(nssrv, "shm", shmarea->_shm_ds, timeout_ms)))
     {
-      printf("shm: did not find shm-ds 'shm'\n");
+      printf("shm: did not find shm-ds 'shm' (%ld)\n", r);
       return -L4_ENOENT;
     }