Skip to content

Commit

Permalink
module: Add missing newline in printk call.
Browse files Browse the repository at this point in the history
Add missing \n and also follow commit bddb12b "kernel/module.c: use pr_foo()".

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
Tetsuo Handa authored and rustyrussell committed Jan 20, 2014
1 parent e865d06 commit 22e6695
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -815,10 +815,8 @@ SYSCALL_DEFINE2(delete_module, const char __user *, name_user,
return -EFAULT;
name[MODULE_NAME_LEN-1] = '\0';

if (!(flags & O_NONBLOCK)) {
printk(KERN_WARNING
"waiting module removal not supported: please upgrade");
}
if (!(flags & O_NONBLOCK))
pr_warn("waiting module removal not supported: please upgrade\n");

if (mutex_lock_interruptible(&module_mutex) != 0)
return -EINTR;
Expand Down

0 comments on commit 22e6695

Please sign in to comment.