mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/4] UML - Fix initrd printk
@ 2008-02-12 18:55 Jeff Dike
  0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2008-02-12 18:55 UTC (permalink / raw)
  To: Andrew Morton; +Cc: LKML, uml-devel, Johann Felix Soden, WANG Cong

From: Johann Felix Soden <johfel@users.sourceforge.net>

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>
---
 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.000000000 -0500
+++ linux-2.6-git/arch/um/kernel/initrd.c	2008-02-12 13:19:11.000000000 -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;
 	}
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-02-12 18:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-12 18:55 [PATCH 1/4] UML - Fix initrd printk Jeff Dike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome