summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include
diff options
context:
space:
mode:
authorMathias Krause <mathias.krause@secunet.com>2011-06-08 15:36:55 +0200
committerStefan Reinauer <stefan.reinauer@coreboot.org>2011-11-03 19:14:26 +0100
commitc4716b4ebfbcc970bf16f4c74e812fbbb8f00124 (patch)
treee001b38115430f9866467056ddb28c4de737c01d /payloads/libpayload/include
parent08052011433af37c02ce7db86af56db7154e4d98 (diff)
libpayload: Reduce verbosity in USB stack
The USB stack is pretty noisy. Reduce the output to a sane level. Change-Id: I250949e5cf74a8c6d43822b2e7487143b2ae1c65 Signed-off-by: Mathias Krause <mathias.krause@secunet.com> Reviewed-on: http://review.coreboot.org/393 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'payloads/libpayload/include')
-rw-r--r--payloads/libpayload/include/usb/usb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/payloads/libpayload/include/usb/usb.h b/payloads/libpayload/include/usb/usb.h
index daad493847..2cd9c55895 100644
--- a/payloads/libpayload/include/usb/usb.h
+++ b/payloads/libpayload/include/usb/usb.h
@@ -252,9 +252,9 @@ int usb_interface_check(u16 vendor, u16 device);
#define USB_QUIRK_NONE 0
#ifdef USB_DEBUG
-#define debug(x...) printf(x);
+# define debug(fmt, ...) printf(fmt, ##__VA_ARGS__)
#else
-#define debug(x...)
+# define debug(fmt, ...) while (0) { printf(fmt, ##__VA_ARGS__); }
#endif
void usb_fatal(const char *message) __attribute__ ((noreturn));