Skip to content

Commit 7560ef3

Browse files
Tetsuo Handatorvalds
authored andcommitted
sysctl: add KERN_CONT to deprecated_sysctl_warning()
Do not break lines while printk()ing values. kernel: warning: process `tomoyo_file_tes' used the deprecated sysctl system call with kernel: 3. kernel: 5. kernel: 56. kernel: Link: http://lkml.kernel.org/r/1480814833-4976-1-git-send-email-penguin-kernel@I-love.SAKURA.ne.jp Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Acked-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 8e53c07 commit 7560ef3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/sysctl_binary.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,8 +1354,8 @@ static void deprecated_sysctl_warning(const int *name, int nlen)
13541354
"warning: process `%s' used the deprecated sysctl "
13551355
"system call with ", current->comm);
13561356
for (i = 0; i < nlen; i++)
1357-
printk("%d.", name[i]);
1358-
printk("\n");
1357+
printk(KERN_CONT "%d.", name[i]);
1358+
printk(KERN_CONT "\n");
13591359
}
13601360
return;
13611361
}

0 commit comments

Comments
 (0)