* [PATCH] of: add some debugging statements if initrd isn't found
@ 2012-02-03 22:15 Andres Salomon
0 siblings, 0 replies; only message in thread
From: Andres Salomon @ 2012-02-03 22:15 UTC (permalink / raw)
To: Grant Likely; +Cc: Rob Herring, devicetree-discuss, linux-kernel
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 <dilinger@queued.net>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-02-03 22:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-03 22:15 [PATCH] of: add some debugging statements if initrd isn't found Andres Salomon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).