From d02090bba538158c36fd838d4e50c47e40f11449 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 24 Nov 2021 20:24:46 +0100 Subject: 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 --- include/osmocom/core/logging.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/osmocom') 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) -- cgit v1.2.3