Skip to contentSkip to conversation

cosmetic: debug: Replace #ifdef DEBUG with debug() macro

PATCH RESEND New Lukasz Majewski 3 participants 3 messages May 8, 2016 – May 30, 2016

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 cosmetic: debug: Replace #ifdef DEBUG with debug() macro

Replace #ifdef DEBUG with dedicated debug() macro.

---
 common/bootm_os.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
common/bootm_os.c +2 -3
index cb83f4a..9ec84bd 100644
@@ -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
#2 lore raw

PATCH RESEND 1/1 cosmetic: debug: Replace #ifdef DEBUG with debug() macro

In reply to Lukasz Majewski
Quoted 3 lines · Lukasz Majewski

Replace #ifdef DEBUG with dedicated debug() macro.

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>