[U-Boot] [PATCH RESEND] cosmetic: debug: Replace #ifdef DEBUG with debug() macro

Lukasz Majewski l.majewski at majess.pl
Sun May 8 08:52:21 CEST 2016


Replace #ifdef DEBUG with dedicated debug() macro.

Signed-off-by: Lukasz Majewski <l.majewski at majess.pl>
---
 common/bootm_os.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/common/bootm_os.c b/common/bootm_os.c
index cb83f4a..9ec84bd 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;
 }
 
-- 
2.1.4



More information about the U-Boot mailing list