1
0
Fork 0
forked from len0rd/rockbox

Support per file logging with LOGF_ENABLE in codecs

Codecs mostly use custom LOGF define for logging (i.e. see aac.c). Now such logging can be enabled in single file with #define LOGF_ENABLE

Change-Id: I36312fbcd2d9166fb1fe5ead31e7354342d8828d
This commit is contained in:
roman.artiukhin 2023-09-22 19:49:41 +03:00 committed by Solomon Peachy
parent 62db16c82c
commit ec2c507e60
2 changed files with 4 additions and 16 deletions

View file

@ -60,6 +60,10 @@
#ifdef ROCKBOX_HAS_LOGF
#undef LOGF
#define LOGF ci->logf
#elifdef LOGF_ENABLE
#include "logf.h"
#undef LOGF
#define LOGF logf
#else
#define LOGF(...)
#endif