]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
driver core: add newlines to debugging enabled/disabled messages
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 30 Nov 2008 13:01:26 +0000 (14:01 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 17 Dec 2008 19:23:07 +0000 (11:23 -0800)
Both messages are missing the newline and thus dmesg output gets
scrambled.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
lib/dynamic_printk.c

index d0fd0e4ed9a8f81febb9c883550306aa58b1cb45..8e30295e8566579515ca8126a694150e290107aa 100644 (file)
@@ -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);
                                }
                        }
                }