]> err.no Git - linux-2.6/commitdiff
uml: fix initrd printk
authorJohann Felix Soden <johfel@users.sourceforge.net>
Sat, 23 Feb 2008 23:23:23 +0000 (15:23 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 24 Feb 2008 01:12:13 +0000 (17:12 -0800)
If the initrd file has zero-length, the error message should contain
the filepath.

Cc: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Johann Felix Soden <johfel@users.sourceforge.net>
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/kernel/initrd.c

index fa015565001b6b46171149e073bfe2e828872566..d386c75c88eb2ee117c3cc1c84ff18100e0705f4 100644 (file)
@@ -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;
        }