libpayload: Reduce verbosity in USB stack
[coreboot.git] / payloads / libpayload / include / usb / usb.h
index daad4938471866cf488da7faf435fce18efcad90..2cd9c558950c66c7c90b88955a1b34b83846329f 100644 (file)
@@ -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));