diff options
author | Stefan Roese <sr@denx.de> | 2014-11-11 19:03:55 +0100 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-11-23 06:49:00 -0500 |
commit | 18f26fdbd0503e5293aa7858809015737bf5006e (patch) | |
tree | e2f21c8048e9e81d8e47a364e9e7eaac587f7f83 /common/spl/spl.c | |
parent | b41411954d4ccf6ddaa581178462017557b82b5d (diff) |
spl: Change debug to printf for "Unsupported boot-device"
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: Wolfgang Denk <wd@denx.de>
Cc: Tom Rini <trini@ti.com>
Acked-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'common/spl/spl.c')
-rw-r--r-- | common/spl/spl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c index f01a21c83a5..97eb8eb987d 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -221,7 +221,9 @@ void board_init_r(gd_t *dummy1, ulong dummy2) break; #endif default: - debug("SPL: Un-supported Boot Device\n"); +#if defined(CONFIG_SPL_SERIAL_SUPPORT) && defined(CONFIG_SPL_LIBCOMMON_SUPPORT) + printf("SPL: Unsupported Boot Device %d\n", boot_device); +#endif hang(); } |