logdiskf.h - fix wrong cpp conditionals

Change-Id: I6721227938955915fede32b6748802f7abf4b391
This commit is contained in:
Marcin Bukat 2012-10-22 22:34:41 +02:00
parent 5f9b024341
commit 8ad8473d81
1 changed files with 2 additions and 7 deletions

View File

@ -67,19 +67,14 @@ extern int logfdiskindex;
void _logdiskf(const char* file, const char level,
const char *format, ...) ATTRIBUTE_PRINTF(3, 4);
#else /* !ROCKBOX_HAS_LOGF */
#else /* !ROCKBOX_HAS_LOGDISKF */
/* built without logdiskf() support enabled, replace logdiskf() by DEBUGF() */
#define logdiskf(f,args...) DEBUGF(f"\n",##args)
#endif /* !ROCKBOX_HAS_LOGDISKF */
#else
#define ERRORF DEBUGF
#define WARNF DEBUGF
#define NOTEF DEBUGF
#endif
#endif /* LOGDISKF_H */