Skip to contentSkip to conversation

modem.c: Switch to debug() from dbg found in common/console.c

PATCH New Tom Rini 1 participant 2 messages Oct 25, 2014 – Oct 27, 2014

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 modem.c: Switch to debug() from dbg found in common/console.c

---
 common/modem.c |   13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
common/modem.c +6 -7
index be54b10..96b1064 100644
@@ -19,7 +19,7 @@ static inline void mdm_readline(char *buf, int bufsiz)
 	for(;;) {
 		c = serial_getc();
 
-		/*		dbg("(%c)", c); */
+		debug("(%c)", c);
 
 		switch(c) {
 		case '\r':
@@ -40,7 +40,6 @@ static inline void mdm_readline(char *buf, int bufsiz)
 	}
 }
 
-extern void  dbg(const char *fmt, ...);
 int mdm_init (void)
 {
 	char env_str[16];
@@ -66,15 +65,15 @@ int mdm_init (void)
 			serial_puts("\n");
 			for(;;) {
 				mdm_readline(console_buffer, CONFIG_SYS_CBSIZE);
-				dbg("ini%d: [%s]", i, console_buffer);
+				debug("ini%d: [%s]", i, console_buffer);
 
 				if ((strcmp(console_buffer, "OK") == 0) ||
 					(strcmp(console_buffer, "ERROR") == 0)) {
-					dbg("ini%d: cmd done", i);
+					debug("ini%d: cmd done", i);
 					break;
 				} else /* in case we are originating call ... */
 					if (strncmp(console_buffer, "CONNECT", 7) == 0) {
-						dbg("ini%d: connect", i);
+						debug("ini%d: connect", i);
 						return 0;
 					}
 			}
@@ -90,9 +89,9 @@ int mdm_init (void)
 	for(;i > 1;) { /* if 'i' > 1 - wait for connection
 				  message from modem */
 		mdm_readline(console_buffer, CONFIG_SYS_CBSIZE);
-		dbg("ini_f: [%s]", console_buffer);
+		debug("ini_f: [%s]", console_buffer);
 		if (strncmp(console_buffer, "CONNECT", 7) == 0) {
-			dbg("ini_f: connected");
+			debug("ini_f: connected");
 			return 0;
 		}
 	}
Signature · 1 line
1.7.9.5
author
#1 lore raw

PATCH 1/1 modem.c: Switch to debug() from dbg found in common/console.c

Quoted 1 line · Tom Rini

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: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141026/a5477807/attachment.pgp>