aboutsummaryrefslogtreecommitdiff
path: root/arch/um/kernel/initrd.c
diff options
context:
space:
mode:
authorJohann Felix Soden <[email protected]>2008-02-23 15:23:23 -0800
committerLinus Torvalds <[email protected]>2008-02-23 17:12:13 -0800
commit4631a9a1517654748aaf89cbc46503819a29eb30 (patch)
tree162a45ef7a672e1830bb4089c88d9e5dccbcda3d /arch/um/kernel/initrd.c
parentb23c9cc0ce652089a2f0af8c7f1541f10dc9b5db (diff)
uml: fix initrd printk
If the initrd file has zero-length, the error message should contain the filepath. Cc: WANG Cong <[email protected]> Signed-off-by: Johann Felix Soden <[email protected]> Signed-off-by: Jeff Dike <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
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 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)
* 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;
}