mirror of https://gerrit.osmocom.org/libosmocore
logging: allow disabling macros using a new define: LIBOSMOCORE_NO_LOGGING
This was previously unconditionally defined, so embedded targets were unable to get rid of the log macros and functions. Change-Id: I589f93d98a6bc5cf6221c56e2fe3f27bfdd200e8
This commit is contained in:
parent
9e34f08d0b
commit
d02090bba5
|
@ -15,6 +15,10 @@
|
|||
#define DEBUG
|
||||
#endif
|
||||
|
||||
#ifdef LIBOSMOCORE_NO_LOGGING
|
||||
#undef DEBUG
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
/*! Log a debug message through the Osmocom logging framework
|
||||
* \param[in] ss logging subsystem (e.g. \ref DLGLOBAL)
|
||||
|
|
Loading…
Reference in New Issue