summaryrefslogtreecommitdiff
path: root/src/nm-session-monitor.c
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2016-10-14 15:32:56 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2016-10-14 15:57:43 +0200
commit92a8cfac69d8ac00df94dc4da7a09d8f168d0c46 (patch)
tree9fd68f9d2662c61493dbd86b8554d6c6b7b1bf9c /src/nm-session-monitor.c
parentf551c91d3355184ba810f5ea63df79e3cefb678b (diff)
downloadNetworkManager-92a8cfac69d8ac00df94dc4da7a09d8f168d0c46.tar.gz
core: introduce default logging macros
Diffstat (limited to 'src/nm-session-monitor.c')
-rw-r--r--src/nm-session-monitor.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/nm-session-monitor.c b/src/nm-session-monitor.c
index 5000f9060d..b37db362fd 100644
--- a/src/nm-session-monitor.c
+++ b/src/nm-session-monitor.c
@@ -68,16 +68,8 @@ struct _NMSessionMonitorClass {
G_DEFINE_TYPE (NMSessionMonitor, nm_session_monitor, G_TYPE_OBJECT);
-#define _NMLOG_PREFIX_NAME "session-monitor"
-#define _NMLOG_DOMAIN LOGD_CORE
-
-#define _NMLOG(level, ...) \
- G_STMT_START { \
- nm_log (level, _NMLOG_DOMAIN, \
- "%s: " _NM_UTILS_MACRO_FIRST(__VA_ARGS__), \
- _NMLOG_PREFIX_NAME \
- _NM_UTILS_MACRO_REST(__VA_ARGS__)); \
- } G_STMT_END
+#define _NMLOG_DOMAIN LOGD_CORE
+#define _NMLOG(level, ...) __NMLOG_DEFAULT (level, _NMLOG_DOMAIN, "session-monitor", __VA_ARGS__)
/*****************************************************************************/