From: Johann Felix Soden Date: Sat, 23 Feb 2008 23:23:23 +0000 (-0800) Subject: uml: fix initrd printk X-Git-Tag: v2.6.25-rc3~68 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4631a9a1517654748aaf89cbc46503819a29eb30;p=linux-2.6 uml: fix initrd printk If the initrd file has zero-length, the error message should contain the filepath. Cc: WANG Cong Signed-off-by: Johann Felix Soden Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/um/kernel/initrd.c b/arch/um/kernel/initrd.c index fa01556500..d386c75c88 100644 --- a/arch/um/kernel/initrd.c +++ b/arch/um/kernel/initrd.c @@ -32,7 +32,7 @@ static int __init read_initrd(void) * ask for no memory. */ if (size == 0) { - printk(KERN_ERR "\"%\" is a zero-size initrd\n"); + printk(KERN_ERR "\"%s\" is a zero-size initrd\n", initrd); return 0; }