Change in libosmocore[master]: logging: allow disabling macros using a new define: LIBOSMOCORE_NO_LO...

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Hoernchen gerrit-no-reply at lists.osmocom.org
Wed Nov 24 19:25:11 UTC 2021


Hoernchen has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/26356 )


Change subject: logging: allow disabling macros using a new define: LIBOSMOCORE_NO_LOGGING
......................................................................

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
---
M include/osmocom/core/logging.h
1 file changed, 4 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/56/26356/1

diff --git a/include/osmocom/core/logging.h b/include/osmocom/core/logging.h
index a554adc..a95c478 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)

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/26356
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I589f93d98a6bc5cf6221c56e2fe3f27bfdd200e8
Gerrit-Change-Number: 26356
Gerrit-PatchSet: 1
Gerrit-Owner: Hoernchen <ewild at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211124/c29bfe16/attachment.htm>


More information about the gerrit-log mailing list