From: Marcel Holtmann Date: Sun, 30 Nov 2008 13:01:26 +0000 (+0100) Subject: driver core: add newlines to debugging enabled/disabled messages X-Git-Tag: v2.6.28-rc9~9^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=aa6f3c640781c8ac213a4ed3011dcced36f899e3;p=linux-2.6-omap-h63xx.git driver core: add newlines to debugging enabled/disabled messages Both messages are missing the newline and thus dmesg output gets scrambled. Signed-off-by: Marcel Holtmann Signed-off-by: Greg Kroah-Hartman --- diff --git a/lib/dynamic_printk.c b/lib/dynamic_printk.c index d0fd0e4ed9a..8e30295e856 100644 --- a/lib/dynamic_printk.c +++ b/lib/dynamic_printk.c @@ -289,7 +289,7 @@ static ssize_t pr_debug_write(struct file *file, const char __user *buf, dynamic_enabled = DYNAMIC_ENABLED_SOME; err = 0; printk(KERN_DEBUG - "debugging enabled for module %s", + "debugging enabled for module %s\n", elem->name); } else if (!value && (elem->enable == 1)) { elem->enable = 0; @@ -309,7 +309,7 @@ static ssize_t pr_debug_write(struct file *file, const char __user *buf, err = 0; printk(KERN_DEBUG "debugging disabled for module " - "%s", elem->name); + "%s\n", elem->name); } } }