Commit 18f26fdbd0503e5293aa7858809015737bf5006e

Authored by Stefan Roese
Committed by Tom Rini
1 parent b41411954d

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>

Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff

... ... @@ -221,7 +221,9 @@
221 221 break;
222 222 #endif
223 223 default:
224   - debug("SPL: Un-supported Boot Device\n");
  224 +#if defined(CONFIG_SPL_SERIAL_SUPPORT) && defined(CONFIG_SPL_LIBCOMMON_SUPPORT)
  225 + printf("SPL: Unsupported Boot Device %d\n", boot_device);
  226 +#endif
225 227 hang();
226 228 }
227 229