Commit 4631a9a1 authored by Johann Felix Soden's avatar Johann Felix Soden Committed by Linus Torvalds

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: default avatarJohann Felix Soden <johfel@users.sourceforge.net>
Signed-off-by: default avatarJeff Dike <jdike@linux.intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b23c9cc0
...@@ -32,7 +32,7 @@ static int __init read_initrd(void) ...@@ -32,7 +32,7 @@ static int __init read_initrd(void)
* ask for no memory. * ask for no memory.
*/ */
if (size == 0) { 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; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment