Module: xenomai-3
Branch: next
Commit: a873e7dc93feaf20e97b358ab8193f5f3c7274d0
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=a873e7dc93feaf20e97b358ab8193f5f3c7274d0

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Feb  9 11:49:19 2016 +0100

copperplate/traceobj: not all return values are status codes

---

 lib/copperplate/traceobj.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lib/copperplate/traceobj.c b/lib/copperplate/traceobj.c
index 8d4ee9b..40b74c6 100644
--- a/lib/copperplate/traceobj.c
+++ b/lib/copperplate/traceobj.c
@@ -222,8 +222,7 @@ void __traceobj_check_abort(struct traceobj *trobj,
 {
        dump_marks_on_error(trobj);
        panic("wrong return status:\n              %s:%d => %s (want %s)", 
file, line,
-             symerror(received > 0 ? -received : received),
-             symerror(expected > 0 ? -expected : expected));
+             symerror(received), symerror(expected));
 }
 
 void __traceobj_check_warn(struct traceobj *trobj,
@@ -232,8 +231,7 @@ void __traceobj_check_warn(struct traceobj *trobj,
 {
        dump_marks_on_error(trobj);
        warning("wrong return status:\n              %s:%d => %s (want %s)", 
file, line,
-               symerror(received > 0 ? -received : received),
-               symerror(expected > 0 ? -expected : expected));
+               symerror(received), symerror(expected));
 }
 
 void __traceobj_mark(struct traceobj *trobj,


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to