* [U-Boot] [PATCH] spl: Change debug to printf for "Unsupported boot-device"
@ 2014-11-11 15:59 Stefan Roese
2014-11-11 16:16 ` Tom Rini
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Roese @ 2014-11-11 15:59 UTC (permalink / raw)
To: u-boot
We had the problem on an AM33xx platform, that SPL detected an
unsupported boot-device. But since this message is a debug message
it took a bit of time to really know, where the hangup in SPL
resulted from. So let's change this debug message to a printf
and also print the detected boot-device that is not supported.
This makes debugging of such cases much easier.
Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Tom Rini <trini@ti.com>
---
common/spl/spl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/spl/spl.c b/common/spl/spl.c
index d85bab3..1e5ee95 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -216,7 +216,7 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
break;
#endif
default:
- debug("SPL: Un-supported Boot Device\n");
+ printf("SPL: Unsupported Boot Device %d\n", boot_device);
hang();
}
--
2.1.3
^ permalink raw reply related [flat|nested] 3+ messages in thread* [U-Boot] [PATCH] spl: Change debug to printf for "Unsupported boot-device"
2014-11-11 15:59 [U-Boot] [PATCH] spl: Change debug to printf for "Unsupported boot-device" Stefan Roese
@ 2014-11-11 16:16 ` Tom Rini
2014-11-11 16:19 ` Stefan Roese
0 siblings, 1 reply; 3+ messages in thread
From: Tom Rini @ 2014-11-11 16:16 UTC (permalink / raw)
To: u-boot
On Tue, Nov 11, 2014 at 04:59:13PM +0100, Stefan Roese wrote:
> We had the problem on an AM33xx platform, that SPL detected an
> unsupported boot-device. But since this message is a debug message
> it took a bit of time to really know, where the hangup in SPL
> resulted from. So let's change this debug message to a printf
> and also print the detected boot-device that is not supported.
> This makes debugging of such cases much easier.
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Tom Rini <trini@ti.com>
Did you build all of ARM with this? I _think_ this may break the
davinci/related boards that use SPL since they don't have printf due to
size.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141111/7dcba9f0/attachment.pgp>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] spl: Change debug to printf for "Unsupported boot-device"
2014-11-11 16:16 ` Tom Rini
@ 2014-11-11 16:19 ` Stefan Roese
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Roese @ 2014-11-11 16:19 UTC (permalink / raw)
To: u-boot
On 11.11.2014 17:16, Tom Rini wrote:
> On Tue, Nov 11, 2014 at 04:59:13PM +0100, Stefan Roese wrote:
>
>> We had the problem on an AM33xx platform, that SPL detected an
>> unsupported boot-device. But since this message is a debug message
>> it took a bit of time to really know, where the hangup in SPL
>> resulted from. So let's change this debug message to a printf
>> and also print the detected boot-device that is not supported.
>> This makes debugging of such cases much easier.
>>
>> Signed-off-by: Stefan Roese <sr@denx.de>
>> Cc: Tom Rini <trini@ti.com>
>
> Did you build all of ARM with this? I _think_ this may break the
> davinci/related boards that use SPL since they don't have printf due to
> size.
Yes, might be the case. I'm running the build for all ARM board right
now. Will let you know if this breaks anything.
Thanks,
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-11-11 16:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-11 15:59 [U-Boot] [PATCH] spl: Change debug to printf for "Unsupported boot-device" Stefan Roese
2014-11-11 16:16 ` Tom Rini
2014-11-11 16:19 ` Stefan Roese
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox