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:
Eric Wild 2021-11-24 20:24:46 +01:00 committed by laforge
parent 9e34f08d0b
commit d02090bba5
1 changed files with 4 additions and 0 deletions

View File

@ -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)