Commit 8105820c authored by Philippe Gerum's avatar Philippe Gerum

lib/smokey: fix warning printout

parent 081cbb8b
......@@ -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" {
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment