summary refs log tree commit diff
path: root/src/ndisc
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2017-05-11 14:55:55 +0200
committerMichael Biebl <biebl@debian.org>2017-05-11 14:55:55 +0200
commitc333f062ddcba9b35330647bf6cbd0a07f2d786e (patch)
tree257c3a0c74c09f4ad2328eab5b932806405f0c1c /src/ndisc
parenta222e56e103f949b148a6942e385ccca2c26d9f3 (diff)
New upstream version 1.8.0 upstream/1.8.0
Diffstat (limited to 'src/ndisc')
-rw-r--r--src/ndisc/nm-ndisc-private.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/ndisc/nm-ndisc-private.h b/src/ndisc/nm-ndisc-private.h
index 2308675a..10bcc64f 100644
--- a/src/ndisc/nm-ndisc-private.h
+++ b/src/ndisc/nm-ndisc-private.h
@@ -58,16 +58,14 @@ gboolean nm_ndisc_add_dns_domain           (NMNDisc *ndisc, const NMNDiscDNSDoma
         if (nm_logging_enabled (__level, __domain)) { \
             NMNDisc *const __self = (self); \
             char __prefix[64]; \
+            const char *__ifname = __self ? nm_ndisc_get_ifname (__self) : NULL; \
             \
-            _nm_log (__level, __domain, 0, \
+            _nm_log (__level, __domain, 0, __ifname, NULL, \
                      "%s: " _NM_UTILS_MACRO_FIRST (__VA_ARGS__), \
                      (__self \
-                        ? ({ \
-                            const char *__ifname = nm_ndisc_get_ifname (__self); \
-                            nm_sprintf_buf (__prefix, "%s[%p,%s%s%s]", \
-                                            _NMLOG_PREFIX_NAME, __self, \
-                                            NM_PRINT_FMT_QUOTE_STRING (__ifname)); \
-                            }) \
+                        ?  nm_sprintf_buf (__prefix, "%s[%p,%s%s%s]", \
+                                           _NMLOG_PREFIX_NAME, __self, \
+                                           NM_PRINT_FMT_QUOTE_STRING (__ifname)) \
                         : _NMLOG_PREFIX_NAME) \
                      _NM_UTILS_MACRO_REST (__VA_ARGS__)); \
         } \