[PATCH] Use a format for linux_banner

From: Alex Riesen
Date: Sun May 24 2009 - 09:31:22 EST


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

Signed-off-by: Alex Riesen <raa.lkml@xxxxxxxxx>
---

Linus Torvalds, Sat, Feb 28, 2009 18:27:07 +0100:
> What people _can_ do is to send it both as a crazy attachment _and_ as
> plaintext. If they plaintext gets corrupted, the attachment still works,
> and the plaintext is at least somethign I can see and thus in my mail
> reader decide whether it's worth my time to save the attachment and look
> at it outside the mail reader.

Resent properly. Sorry, took me a while.

init/main.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/init/main.c b/init/main.c
index 3bbf93b..d721dad 100644
--- a/init/main.c
+++ b/init/main.c
@@ -566,8 +566,7 @@ asmlinkage void __init start_kernel(void)
tick_init();
boot_cpu_init();
page_address_init();
- printk(KERN_NOTICE);
- printk(linux_banner);
+ printk(KERN_NOTICE "%s", linux_banner);
setup_arch(&command_line);
mm_init_owner(&init_mm, &init_task);
setup_command_line(command_line);
--
1.6.3.1.171.ge2f07

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/