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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed Jul 29 16:17:45 2015 +0200

lib/smokey: fix warning printout

---

 include/smokey/smokey.h |    2 +-
 lib/smokey/helpers.c    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/smokey/smokey.h b/include/smokey/smokey.h
index cd2840a..7dcc06b 100644
--- a/include/smokey/smokey.h
+++ b/include/smokey/smokey.h
@@ -129,7 +129,7 @@ struct smokey_test {
        })
 
 #define smokey_warning(__fmt, __args...)       \
-       __smokey_warning(__FILE__, __LINE__, __fmt, #__args)
+       __smokey_warning(__FILE__, __LINE__, __fmt, ##__args)
 
 #ifdef __cplusplus
 extern "C" {
diff --git a/lib/smokey/helpers.c b/lib/smokey/helpers.c
index 60764b8..6c7d3d7 100644
--- a/lib/smokey/helpers.c
+++ b/lib/smokey/helpers.c
@@ -156,7 +156,7 @@ void __smokey_warning(const char *file, int lineno,
        if (smokey_verbose_mode) {
                __RT(fprintf(stderr, "%s:%d, ", basename(file), lineno));
                __RT(vfprintf(stderr, fmt, ap));
-               __RT(fprintf(stdout, "\n"));
+               __RT(fprintf(stderr, "\n"));
        }
 
        va_end(ap);


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

Reply via email to