]> git.sur5r.net Git - u-boot/commitdiff
cmd_usb.c: print debug messages only when DEBUG is defined
authorWolfgang Denk <wd@denx.de>
Thu, 25 Mar 2010 13:07:23 +0000 (14:07 +0100)
committerWolfgang Denk <wd@denx.de>
Sat, 27 Mar 2010 23:19:45 +0000 (00:19 +0100)
Signed-off-by: Wolfgang Denk <wd@denx.de>
common/cmd_usb.c

index 9de515c323b9642a35f61017cfa978ccb44d218c..6b5c582550b6dd26a3e8e32a5733f503027f9071 100644 (file)
@@ -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);
                        }
                }