diff options
author | Eric <ewild@sysmocom.de> | 2021-11-24 20:24:46 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2021-11-26 09:23:24 +0000 |
commit | d02090bba538158c36fd838d4e50c47e40f11449 (patch) | |
tree | 2c96f9b4dfb4a39aa8937ad23cd1c5c7c2f0d239 | |
parent | 9e34f08d0b649f9a40b79eb036bd23ecc5bd80d4 (diff) |
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
-rw-r--r-- | include/osmocom/core/logging.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/osmocom/core/logging.h b/include/osmocom/core/logging.h index a554adc3..a95c478d 100644 --- a/include/osmocom/core/logging.h +++ b/include/osmocom/core/logging.h @@ -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) |