提交 aa6f3c64 编写于 作者: M Marcel Holtmann 提交者: Greg Kroah-Hartman

driver core: add newlines to debugging enabled/disabled messages

Both messages are missing the newline and thus dmesg output gets
scrambled.
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 09a35ce0
...@@ -289,7 +289,7 @@ static ssize_t pr_debug_write(struct file *file, const char __user *buf, ...@@ -289,7 +289,7 @@ static ssize_t pr_debug_write(struct file *file, const char __user *buf,
dynamic_enabled = DYNAMIC_ENABLED_SOME; dynamic_enabled = DYNAMIC_ENABLED_SOME;
err = 0; err = 0;
printk(KERN_DEBUG printk(KERN_DEBUG
"debugging enabled for module %s", "debugging enabled for module %s\n",
elem->name); elem->name);
} else if (!value && (elem->enable == 1)) { } else if (!value && (elem->enable == 1)) {
elem->enable = 0; elem->enable = 0;
...@@ -309,7 +309,7 @@ static ssize_t pr_debug_write(struct file *file, const char __user *buf, ...@@ -309,7 +309,7 @@ static ssize_t pr_debug_write(struct file *file, const char __user *buf,
err = 0; err = 0;
printk(KERN_DEBUG printk(KERN_DEBUG
"debugging disabled for module " "debugging disabled for module "
"%s", elem->name); "%s\n", elem->name);
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册