diff options
author | Johann Felix Soden <johfel@users.sourceforge.net> | 2008-02-23 18:23:23 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-23 20:12:13 -0500 |
commit | 4631a9a1517654748aaf89cbc46503819a29eb30 (patch) | |
tree | 162a45ef7a672e1830bb4089c88d9e5dccbcda3d | |
parent | b23c9cc0ce652089a2f0af8c7f1541f10dc9b5db (diff) |
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>
-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) | |||
32 | * ask for no memory. | 32 | * ask for no memory. |
33 | */ | 33 | */ |
34 | if (size == 0) { | 34 | if (size == 0) { |
35 | printk(KERN_ERR "\"%\" is a zero-size initrd\n"); | 35 | printk(KERN_ERR "\"%s\" is a zero-size initrd\n", initrd); |
36 | return 0; | 36 | return 0; |
37 | } | 37 | } |
38 | 38 | ||