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>
This commit is contained in:
committed by
Stefan Reinauer
parent
0805201143
commit
c4716b4ebf
@ -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));
|
||||
|
Reference in New Issue
Block a user