procd: add missing new lines inside debug code
authorJohn Crispin <john@phrozen.org>
Thu, 26 Oct 2017 07:39:52 +0000 (09:39 +0200)
committerJohn Crispin <john@phrozen.org>
Mon, 6 Nov 2017 07:32:44 +0000 (08:32 +0100)
Signed-off-by: John Crispin <john@phrozen.org>
log.h
plug/hotplug.c

diff --git a/log.h b/log.h
index bf86f1efb908cd247ff6f4486553fc98112964d6..f0c4268f1be1760012b1a4bdd8aa4b931f99c6f9 100644 (file)
--- a/log.h
+++ b/log.h
@@ -19,7 +19,7 @@
 
 #define DEBUG(level, fmt, ...) do { \
        if (debug >= level) { \
-               ulog(LOG_DEBUG, fmt, ## __VA_ARGS__); \
+               ulog(LOG_NOTICE, fmt, ## __VA_ARGS__); \
        } } while (0)
 
 #define LOG   ULOG_INFO
index ce29ced149cb245d9a0d94eb315461b962229364..ffedba242bf450c96484abdea3c4cfc05c0eb0fe 100644 (file)
@@ -492,15 +492,13 @@ static void rule_handle_command(struct json_script_ctx *ctx, const char *name,
        int rem, i;
 
        if (debug > 3) {
-               DEBUG(4, "Command: %s", name);
+               DEBUG(4, "Command: %s\n", name);
                blobmsg_for_each_attr(cur, data, rem)
-                       DEBUG(4, " %s", (char *) blobmsg_data(cur));
-               DEBUG(4, "\n");
+                       DEBUG(4, " %s\n", (char *) blobmsg_data(cur));
 
-               DEBUG(4, "Message:");
+               DEBUG(4, "Message:\n");
                blobmsg_for_each_attr(cur, vars, rem)
-                       DEBUG(4, " %s=%s", blobmsg_name(cur), (char *) blobmsg_data(cur));
-               DEBUG(4, "\n");
+                       DEBUG(4, " %s=%s\n", blobmsg_name(cur), (char *) blobmsg_data(cur));
        }
 
        for (i = 0; i < ARRAY_SIZE(handlers); i++)