diff options
author | Johann Felix Soden <johfel@users.sourceforge.net> | 2008-02-23 15:23:23 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-23 17:12:13 -0800 |
commit | 4631a9a1517654748aaf89cbc46503819a29eb30 (patch) | |
tree | 162a45ef7a672e1830bb4089c88d9e5dccbcda3d /arch | |
parent | b23c9cc0ce652089a2f0af8c7f1541f10dc9b5db (diff) | |
download | linux-4631a9a1517654748aaf89cbc46503819a29eb30.tar.bz2 |
uml: fix initrd printk
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/um/kernel/initrd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/kernel/initrd.c b/arch/um/kernel/initrd.c index fa015565001b..d386c75c88eb 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; } |