[PATCH 1/4] UML - Fix initrd printk

2008-02-12 Thread Jeff Dike
From: Johann Felix Soden <[EMAIL PROTECTED]>

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]>
---
 arch/um/kernel/initrd.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Index: linux-2.6-git/arch/um/kernel/initrd.c
===
--- linux-2.6-git.orig/arch/um/kernel/initrd.c  2008-02-12 12:44:44.0 
-0500
+++ linux-2.6-git/arch/um/kernel/initrd.c   2008-02-12 13:19:11.0 
-0500
@@ -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;
}
 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 1/4] UML - Fix initrd printk

2008-02-12 Thread Jeff Dike
From: Johann Felix Soden [EMAIL PROTECTED]

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]
---
 arch/um/kernel/initrd.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Index: linux-2.6-git/arch/um/kernel/initrd.c
===
--- linux-2.6-git.orig/arch/um/kernel/initrd.c  2008-02-12 12:44:44.0 
-0500
+++ linux-2.6-git/arch/um/kernel/initrd.c   2008-02-12 13:19:11.0 
-0500
@@ -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;
}
 
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/