mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
rbcodec: enable logf only when LOGF_ENABLE is defined
currently logf() in codec are printed unconditionally when ROCKBOX_HAS_LOGF, which is confusing. Gate them behind LOGF_ENABLE to align with the main binary. Change-Id: I4eb44604000acded55d0af8869145c4f3d77efcb
This commit is contained in:
parent
abaac894f9
commit
543c8de861
1 changed files with 5 additions and 5 deletions
|
|
@ -57,14 +57,14 @@
|
|||
#define LDEBUGF(...)
|
||||
#endif
|
||||
|
||||
#ifdef ROCKBOX_HAS_LOGF
|
||||
#undef LOGF
|
||||
#if defined(LOGF_ENABLE)
|
||||
#if defined(ROCKBOX_HAS_LOGF)
|
||||
#define LOGF ci->logf
|
||||
#elif defined(LOGF_ENABLE)
|
||||
#include "logf.h"
|
||||
#undef LOGF
|
||||
#define LOGF logf
|
||||
#else
|
||||
#define LOGF DEBUGF
|
||||
#endif
|
||||
#else /* !LOGF_ENABLE */
|
||||
#define LOGF(...)
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue