From: Lukasz Majewski Date: Sun, 8 May 2016 06:52:21 +0000 (+0200) Subject: cosmetic: debug: Replace #ifdef DEBUG with debug() macro X-Git-Tag: v2016.07-rc1~147 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=851bda81487b0e2b5b43c9c2dc2582214751953e;p=u-boot cosmetic: debug: Replace #ifdef DEBUG with debug() macro Replace #ifdef DEBUG with dedicated debug() macro. Signed-off-by: Lukasz Majewski --- diff --git a/common/bootm_os.c b/common/bootm_os.c index cb83f4a9bd..9ec84bd0db 100644 --- a/common/bootm_os.c +++ b/common/bootm_os.c @@ -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; }