Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763956AbYBLS6s (ORCPT ); Tue, 12 Feb 2008 13:58:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1763359AbYBLS5p (ORCPT ); Tue, 12 Feb 2008 13:57:45 -0500 Received: from [198.99.130.12] ([198.99.130.12]:33024 "EHLO saraswathi.solana.com" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1762567AbYBLS5o (ORCPT ); Tue, 12 Feb 2008 13:57:44 -0500 Date: Tue, 12 Feb 2008 13:55:27 -0500 From: Jeff Dike To: Andrew Morton Cc: LKML , uml-devel , Johann Felix Soden , WANG Cong Subject: [PATCH 1/4] UML - Fix initrd printk Message-ID: <20080212185527.GA2084@c2.user-mode-linux.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1142 Lines: 30 From: Johann Felix Soden If the initrd file has zero-length, the error message should contain the filepath. Cc: WANG Cong Signed-off-by: Johann Felix Soden Signed-off-by: Jeff Dike --- 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; } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/