installer cleanup.

This commit is contained in:
dhewg 2009-04-15 21:35:47 +02:00 committed by bushing
parent 2100d84d7c
commit 0c2fb136e8
2 changed files with 8 additions and 0 deletions

View File

@ -200,6 +200,7 @@ u8 gecko_enable_console(const u8 enable)
return gecko_console_enabled; return gecko_console_enabled;
} }
#ifndef NDEBUG
int gecko_printf(const char *fmt, ...) int gecko_printf(const char *fmt, ...)
{ {
if (!gecko_console_enabled) if (!gecko_console_enabled)
@ -215,6 +216,7 @@ int gecko_printf(const char *fmt, ...)
return gecko_sendbuffer(buffer, i); return gecko_sendbuffer(buffer, i);
} }
#endif
// irq context // irq context

View File

@ -29,7 +29,13 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
void gecko_init(void); void gecko_init(void);
u8 gecko_enable_console(const u8 enable); u8 gecko_enable_console(const u8 enable);
#ifdef NDEBUG
#define gecko_printf(...) do { } while(0)
#else
int gecko_printf(const char *fmt, ...) __attribute__((format (printf, 1, 2))); int gecko_printf(const char *fmt, ...) __attribute__((format (printf, 1, 2)));
#endif
void gecko_timer_initialize(void); void gecko_timer_initialize(void);
void gecko_timer(void); void gecko_timer(void);