public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Use a format string for linux_banner
@ 2009-02-25  9:04 Alex Riesen
  2009-02-28 12:01 ` Stefan Richter
  0 siblings, 1 reply; 5+ messages in thread
From: Alex Riesen @ 2009-02-25  9:04 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Linus Torvalds, Andrew Morton, trivial

[-- Attachment #1: Type: text/plain, Size: 219 bytes --]

There is no format specifiers left in the linux_banner,
and gcc complains seeing the printk.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
 init/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

[-- Attachment #2: 0001-Use-a-format-for-linux_banner.diff --]
[-- Type: application/octet-stream, Size: 840 bytes --]

From e7b44c4c1d7d0f182f0100b0dc31c20fb3dfe8ea Mon Sep 17 00:00:00 2001
From: Alex Riesen <raa.lkml@gmail.com>
Date: Wed, 25 Feb 2009 09:53:15 +0100
Subject: [PATCH] Use a format string for linux_banner

There is no format specifiers left in the linux_banner,
and gcc complains seeing the printk.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
 init/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/init/main.c b/init/main.c
index 8442094..78fc0d8 100644
--- a/init/main.c
+++ b/init/main.c
@@ -554,7 +554,7 @@ asmlinkage void __init start_kernel(void)
 	boot_cpu_init();
 	page_address_init();
 	printk(KERN_NOTICE);
-	printk(linux_banner);
+	printk("%s", linux_banner);
 	setup_arch(&command_line);
 	mm_init_owner(&init_mm, &init_task);
 	setup_command_line(command_line);
-- 
1.6.2.rc1.46.gb3ec84f


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-05-24 13:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-25  9:04 [PATCH] Use a format string for linux_banner Alex Riesen
2009-02-28 12:01 ` Stefan Richter
2009-02-28 13:36   ` Alex Riesen, Alex Riesen
2009-02-28 17:27     ` Linus Torvalds
2009-05-24 13:30       ` [PATCH] Use a format " Alex Riesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox