Skip to content

Commit

Permalink
uml: fix initrd printk
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johann Felix Soden authored and Linus Torvalds committed Feb 24, 2008
1 parent b23c9cc commit 4631a9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/um/kernel/initrd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4631a9a

Please sign in to comment.