]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/examples/libs/shmc/prodcons.c
update
[l4.git] / l4 / pkg / examples / libs / shmc / prodcons.c
index 03c4243edf868e06eece55cd39b45ce4250b953a..0a62eac8f26923504cfcf3a82111f2a761c69c37 100644 (file)
@@ -1,5 +1,7 @@
 /*
- * (c) 2008-2009 Technische Universität Dresden
+ * (c) 2008-2009 Adam Lackorzynski <adam@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 General Public License 2.
  * Please see the COPYING-GPL-2 file for details.
@@ -21,7 +23,7 @@
 #include <l4/sys/thread.h>
 
 // a small helper
-#define CHK(func) if (func) { return (void *)-1; }
+#define CHK(func) if (func) { printf("failure: %d\n", __LINE__); return (void *)-1; }
 
 static const char some_data[] = "Hi consumer!";