summaryrefslogtreecommitdiff
path: root/arch/um/kernel/initrd.c
diff options
context:
space:
mode:
authorJohann Felix Soden <johfel@users.sourceforge.net>2008-02-23 23:23:23 (GMT)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-24 01:12:13 (GMT)
commit4631a9a1517654748aaf89cbc46503819a29eb30 (patch)
tree162a45ef7a672e1830bb4089c88d9e5dccbcda3d /arch/um/kernel/initrd.c
parentb23c9cc0ce652089a2f0af8c7f1541f10dc9b5db (diff)
downloadlinux-4631a9a1517654748aaf89cbc46503819a29eb30.tar.xz
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/um/kernel/initrd.c')
-rw-r--r--arch/um/kernel/initrd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/kernel/initrd.c b/arch/um/kernel/initrd.c
index fa01556..d386c75 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;
}