cosmetic: debug: Replace #ifdef DEBUG with debug() macro
PATCH RESEND 1/1 cosmetic: debug: Replace #ifdef DEBUG with debug() macro
Replace #ifdef DEBUG with dedicated debug() macro.
Signed-off-by Lukasz Majewski <[email protected]>
--- common/bootm_os.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
common/bootm_os.c +2 -3
@@ -484,9 +484,8 @@ int boot_selected_os(int argc, char * const argv[], int state, state == BOOTM_STATE_OS_FAKE_GO) /* We expect to return */return 0 ;bootstage_error (BOOTSTAGE_ID_BOOT_OS_RETURNED ); -#ifdef DEBUG -puts ("\n## Control returned to monitor - resetting...\n" ); -#endif +debug ("\n## Control returned to monitor - resetting...\n" ); +return BOOTM_ERR_RESET ; }
Signature · 1 line
2.1.4
PATCH RESEND 1/1 cosmetic: debug: Replace #ifdef DEBUG with debug() macro
Quoted 7 lines · Lukasz Majewski
Replace #ifdef DEBUG with dedicated
debug()macro.Signed-off-by Lukasz Majewski <[email protected]>--- common/bootm_os.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
Reviewed-by Bin Meng <[email protected]>
PATCH RESEND 1/1 cosmetic: debug: Replace #ifdef DEBUG with debug() macro
In reply to Lukasz MajewskiQuoted 3 lines · Lukasz Majewski
Replace #ifdef DEBUG with dedicated
debug()macro.Signed-off-by Lukasz Majewski <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/7f9a41a2/attachment.sig>