sysctl: add KERN_CONT to deprecated_sysctl_warning()
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Wed, 14 Dec 2016 23:04:26 +0000 (15:04 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 15 Dec 2016 00:04:07 +0000 (16:04 -0800)
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>
kernel/sysctl_binary.c

index 6eb99c17dbd891ff6779c05b93030d7acfece1e8..ece4b177052baa8a2ba9a5aded7f9694594eb4e5 100644 (file)
@@ -1354,8 +1354,8 @@ static void deprecated_sysctl_warning(const int *name, int nlen)
                        "warning: process `%s' used the deprecated sysctl "
                        "system call with ", current->comm);
                for (i = 0; i < nlen; i++)
-                       printk("%d.", name[i]);
-               printk("\n");
+                       printk(KERN_CONT "%d.", name[i]);
+               printk(KERN_CONT "\n");
        }
        return;
 }