Author: stepan Date: 2008-09-29 19:47:50 +0200 (Mon, 29 Sep 2008) New Revision: 69
Modified: trunk/filo/include/debug.h Log: fix the printf issue the right way, thanks to Segher for the reminder.
Modified: trunk/filo/include/debug.h =================================================================== --- trunk/filo/include/debug.h 2008-09-29 17:42:29 UTC (rev 68) +++ trunk/filo/include/debug.h 2008-09-29 17:47:50 UTC (rev 69) @@ -42,7 +42,7 @@ #ifdef CONFIG_USE_GRUB extern int using_grub_interface; void grub_printf (const char *format,...); -#define printf(x...) { if (using_grub_interface) { grub_printf(x); } else { printf(x); } } +#define printf(x...) do { if (using_grub_interface) { grub_printf(x); } else { printf(x); } } while (0) #endif
#endif /* DEBUG_H */