]> 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 0cb526d3e21848a3df79ba16e79f6c8270ca8d6a..b276064cb16d980e65f90f5e13e4ccc8d188aa06 100644 (file)
@@ -1,5 +1,7 @@
 /*
- * (c) 2008-2009 Technische Universität Dresden
+ * (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
+ *               Alexander Warg <warg@os.inf.tu-dresden.de>
+ *     economic rights: Technische Universität Dresden (Germany)
  * This file is part of TUD:OS and distributed under the terms of the
  * GNU Lesser General Public License 2.1.
  * Please see the COPYING-LGPL-2.1 file for details.
@@ -105,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;
     }