summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2011-10-25 11:39:16 +0200
committerWolfgang Denk <wd@denx.de>2011-10-27 23:54:03 +0200
commit86bd3ff8fd31fc1b4ef6334ea3f0c10ae2ee6c90 (patch)
tree88cd9cb7fa397c31649ec5fe0c3c6fb4dedcba59
parent5bbe10dd2eb067a355d37bbf1a1621810bf3582e (diff)
downloadu-boot-imx-86bd3ff8fd31fc1b4ef6334ea3f0c10ae2ee6c90.zip
u-boot-imx-86bd3ff8fd31fc1b4ef6334ea3f0c10ae2ee6c90.tar.gz
u-boot-imx-86bd3ff8fd31fc1b4ef6334ea3f0c10ae2ee6c90.tar.bz2
GCC4.6: Squash warning in usb_storage.c
usb_storage.c: In function ‘usb_stor_CB_reset’: usb_storage.c:466:6: warning: variable ‘result’ set but not used [-Wunused-but-set-variable] Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Cc: Wolfgang Denk <wd@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--common/usb_storage.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/usb_storage.c b/common/usb_storage.c
index 16667f3..10e786f 100644
--- a/common/usb_storage.c
+++ b/common/usb_storage.c
@@ -56,16 +56,17 @@
#include <part.h>
#include <usb.h>
-#undef USB_STOR_DEBUG
#undef BBB_COMDAT_TRACE
#undef BBB_XPORT_TRACE
#ifdef USB_STOR_DEBUG
-#define USB_STOR_PRINTF(fmt, args...) printf(fmt , ##args)
+#define USB_BLK_DEBUG 1
#else
-#define USB_STOR_PRINTF(fmt, args...)
+#define USB_BLK_DEBUG 0
#endif
+#define USB_STOR_PRINTF(fmt, args...) debug_cond(USB_BLK_DEBUG, fmt, ##args)
+
#include <scsi.h>
/* direction table -- this indicates the direction of the data
* transfer for each command code -- a 1 indicates input