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:
parent
0805201143
commit
c4716b4ebf
9 changed files with 85 additions and 86 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue