debug: remove newline from debug messages
[project/netifd.git] / netifd.h
index df9d324c05c022f0f2e071b617e6fee88b3da0fe..a462abd88090deb9196ded22cd522d16d2422474 100644 (file)
--- a/netifd.h
+++ b/netifd.h
@@ -73,8 +73,10 @@ enum {
 #define DPRINTF(format, ...) fprintf(stderr, "%s(%d): " format, __func__, __LINE__, ## __VA_ARGS__)
 #define D(level, format, ...) do { \
                netifd_udebug_printf("[" #level "] %s(%d): " format,  __func__, __LINE__, ## __VA_ARGS__); \
-               if (debug_mask & (1 << (DEBUG_ ## level))) \
-                               DPRINTF(format, ##__VA_ARGS__); \
+               if (debug_mask & (1 << (DEBUG_ ## level))) { \
+                       DPRINTF(format, ##__VA_ARGS__); \
+                       fprintf(stderr, "\n"); \
+               } \
        } while (0)
 #else
 #define DPRINTF(format, ...) no_debug(0, format, ## __VA_ARGS__)