Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758052Ab2BCWYI (ORCPT ); Fri, 3 Feb 2012 17:24:08 -0500 Received: from lunge.queued.net ([173.255.254.236]:46151 "EHLO lunge.queued.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758032Ab2BCWXq (ORCPT ); Fri, 3 Feb 2012 17:23:46 -0500 Date: Fri, 3 Feb 2012 14:15:20 -0800 From: Andres Salomon To: Grant Likely Cc: Rob Herring , devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] of: add some debugging statements if initrd isn't found Message-ID: <20120203141520.4900a23b@debxo> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1285 Lines: 41 While debugging initrd problems in a FDT blob, it's nice to both terminate the "Looking for initrd properties... " with a newline, as well as letting us know which property wasn't found. Signed-off-by: Andres Salomon --- drivers/of/fdt.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index ea2bd1b..92234f7 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -561,13 +561,17 @@ void __init early_init_dt_check_for_initrd(unsigned long node) pr_debug("Looking for initrd properties... "); prop = of_get_flat_dt_prop(node, "linux,initrd-start", &len); - if (!prop) + if (!prop) { + pr_debug("couldn't find linux,initrd-start\n"); return; + } start = of_read_ulong(prop, len/4); prop = of_get_flat_dt_prop(node, "linux,initrd-end", &len); - if (!prop) + if (!prop) { + pr_debug("couldn't find linux,initrd-end\n"); return; + } end = of_read_ulong(prop, len/4); early_init_dt_setup_initrd_arch(start, end); -- 1.7.2.5 -- 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/