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>
This commit is contained in:
Johann Felix Soden 2008-02-23 15:23:23 -08:00 committed by Linus Torvalds
parent b23c9cc0ce
commit 4631a9a151

View file

@ -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;
}