
30 Aug
2011
30 Aug
'11
7:19 p.m.
On Tuesday, August 30, 2011 08:49:41 Graeme Russ wrote:
- if (!gd->have_console)
- if (!gd->have_console) {
+#ifdef CONFIG_PRE_CONSOLE_BUFFER
pre_console_putc(c);
+#endif return;
- }
add inline stubs for the pre_console_xxx helpers and you can drop all the ifdef's through out the rest of the code
#ifdef CONFIG_PRE_CONSOLE_BUFFER ... normal defines for these ... #else static inline void pre_console_putc(const char c) {} static inline void pre_console_puts(const char *s) {} #endif -mike