about summary refs log tree commit diff
path: root/src/nm-cloud-setup/nm-cloud-setup-utils.h
diff options
context:
space:
mode:
authorJeremy Bicha <jeremy.bicha@canonical.com>2022-02-03 09:24:19 -0500
committerJeremy Bicha <jeremy.bicha@canonical.com>2022-02-03 12:01:26 -0500
commit240934659cd8326a14324c73d4f0f88eecfddcab (patch)
treee07cde48aa0a143bebf10ca7103cc0e69febad25 /src/nm-cloud-setup/nm-cloud-setup-utils.h
parentfbe61ddadf4a89800a8e3651ae91099259ddf2ad (diff)
parent1628eda029ba4dede8d4d45572c6b60367882436 (diff)
Merge tag 'debian/1.34.0-2' into ubuntu/master
network-manager Debian release 1.34.0-2
Diffstat (limited to 'src/nm-cloud-setup/nm-cloud-setup-utils.h')
-rw-r--r--src/nm-cloud-setup/nm-cloud-setup-utils.h20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/nm-cloud-setup/nm-cloud-setup-utils.h b/src/nm-cloud-setup/nm-cloud-setup-utils.h
index 3ca7298f..e1502b95 100644
--- a/src/nm-cloud-setup/nm-cloud-setup-utils.h
+++ b/src/nm-cloud-setup/nm-cloud-setup-utils.h
@@ -3,7 +3,7 @@
 #ifndef __NM_CLOUD_SETUP_UTILS_H__
 #define __NM_CLOUD_SETUP_UTILS_H__
 
-#include "libnm-glib-aux/nm-logging-fwd.h"
+#include "libnm-glib-aux/nm-logging-base.h"
 
 /*****************************************************************************/
 
@@ -13,26 +13,14 @@
 
 /*****************************************************************************/
 
-extern volatile NMLogLevel _nm_logging_configured_level;
-
-static inline gboolean
-nm_logging_enabled(NMLogLevel level)
-{
-    return level >= _nm_logging_configured_level;
-}
-
-void _nm_logging_enabled_init(const char *level_str);
-
-void _nm_log_impl_cs(NMLogLevel level, const char *fmt, ...) _nm_printf(2, 3);
-
-#define _nm_log(level, ...) _nm_log_impl_cs((level), __VA_ARGS__);
+#define _nm_log(level, ...) _nm_log_simple_printf((level), __VA_ARGS__);
 
 #define _NMLOG(level, ...)                 \
     G_STMT_START                           \
     {                                      \
         const NMLogLevel _level = (level); \
                                            \
-        if (nm_logging_enabled(_level)) {  \
+        if (_nm_logging_enabled(_level)) { \
             _nm_log(_level, __VA_ARGS__);  \
         }                                  \
     }                                      \
@@ -41,7 +29,7 @@ void _nm_log_impl_cs(NMLogLevel level, const char *fmt, ...) _nm_printf(2, 3);
 /*****************************************************************************/
 
 #ifndef NM_DIST_VERSION
-    #define NM_DIST_VERSION VERSION
+#define NM_DIST_VERSION VERSION
 #endif
 
 /*****************************************************************************/