Skip to contentSkip to conversation

uml: Fix printk in initrd.c

PATCH In review Johann Felix Soden 2 participants 2 messages Feb 10, 2008 – Feb 11, 2008 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uml: Fix printk in initrd.c

From: Johann Felix Soden <[email protected]>

If the initrd file has zero-length, the error message should contain the filepath.

---
 arch/um/kernel/initrd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/um/kernel/initrd.c +1 -1
index fa01556..b703cd5 100644
@@ -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;
 	}
 
Signature · 13 lines
1.5.4




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
#1 lore raw
Quoted 3 lines · Johann Felix Soden

From: Johann Felix Soden <[email protected]>

If the initrd file has zero-length, the error message should contain the filepath.

Sigh - Wang Cong discovered this and sent it to Andrew about a week ago, but Andrew seemed to have ignored it and I didn't notice.

I'll hang on to this and send it on.

Jeff

Signature · 10 lines
Work email - jdike at linux dot intel dot com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel