Skip to contentSkip to conversation

cmd_usb.c: print debug messages only when DEBUG is defined

PATCH New Wolfgang Denk 1 participant 2 messages Mar 25, 2010 – Mar 27, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cmd_usb.c: print debug messages only when DEBUG is defined

---
 common/cmd_usb.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
common/cmd_usb.c +2 -2
index 9de515c..6b5c582 100644
@@ -601,7 +601,7 @@ int do_usb(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 					ok++;
 					if (devno)
 						printf("\n");
-					printf("print_part of %x\n", devno);
+					debug("print_part of %x\n", devno);
 					print_part(stor_dev);
 				}
 			}
@@ -610,7 +610,7 @@ int do_usb(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 			stor_dev = usb_stor_get_dev(devno);
 			if (stor_dev->type != DEV_TYPE_UNKNOWN) {
 				ok++;
-				printf("print_part of %x\n", devno);
+				debug("print_part of %x\n", devno);
 				print_part(stor_dev);
 			}
 		}
Signature · 1 line
1.6.6.1
author Applied
#1 lore raw

PATCH 1/1 cmd_usb.c: print debug messages only when DEBUG is defined

Quoted 4 lines · In message <[email protected]> you wrote:
---
 common/cmd_usb.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Applied.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Speed of a tortoise breaking the sound barrier         = 1 Machturtle