mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 01:32:47 +02:00
Revert "GCC4.6: Convert various empty macros to inline functions"
This reverts commit 60ce53cf9f
.
The commit causes build breakage for a number of boards. This results
from the fact that now the arguments of debug() actually get
referenced (even if there is hope that the compiler will optimize
away the debug() call). The obvious fix to that probem (change the
code to always declare the referenced variables and data structures)
increases the code size, and was this rejected. So it was decided to
revert this commit until a better solution is found.
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
#ifdef USB_DEBUG
|
||||
#define USB_PRINTF(fmt, args...) printf(fmt , ##args)
|
||||
#else
|
||||
static inline void USB_PRINTF(const char *fmt, ...) {}
|
||||
#define USB_PRINTF(fmt, args...)
|
||||
#endif
|
||||
|
||||
#define USB_BUFSIZ 512
|
||||
@@ -970,7 +970,7 @@ void usb_scan_devices(void)
|
||||
#ifdef USB_HUB_DEBUG
|
||||
#define USB_HUB_PRINTF(fmt, args...) printf(fmt , ##args)
|
||||
#else
|
||||
static inline void USB_HUB_PRINTF(const char *fmt, ...) {}
|
||||
#define USB_HUB_PRINTF(fmt, args...)
|
||||
#endif
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user