summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2010-03-25 14:07:23 +0100
committerWolfgang Denk <wd@denx.de>2010-03-28 00:19:45 +0100
commit060f28532b09dd3d2c78423bdd809ac768a27629 (patch)
treef44abf1df4be7001e6fd8cac24534ddd79fa7ebe
parenta574cff121b1479c8e962b7a2a29310020387260 (diff)
downloadu-boot-imx-060f28532b09dd3d2c78423bdd809ac768a27629.zip
u-boot-imx-060f28532b09dd3d2c78423bdd809ac768a27629.tar.gz
u-boot-imx-060f28532b09dd3d2c78423bdd809ac768a27629.tar.bz2
cmd_usb.c: print debug messages only when DEBUG is defined
Signed-off-by: Wolfgang Denk <wd@denx.de>
-rw-r--r--common/cmd_usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cmd_usb.c b/common/cmd_usb.c
index 9de515c..6b5c582 100644
--- a/common/cmd_usb.c
+++ b/common/cmd_usb.c
@@ -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);
}
}