]> git.proxmox.com Git - mirror_frr.git/commitdiff
pimd: don't split format string from zlog call
authorDavid Lamparter <equinox@diac24.net>
Tue, 28 Apr 2020 09:09:26 +0000 (11:09 +0200)
committerDavid Lamparter <equinox@diac24.net>
Tue, 28 Apr 2020 09:13:02 +0000 (11:13 +0200)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
pimd/pim_igmp_mtrace.c

index 1cecd976cdc6f6365fe90d8469d2d122f6ad60f6..cac6fab2714b92126b6ae0c785a2113ac7ad1f09 100644 (file)
@@ -271,11 +271,10 @@ static uint32_t query_arrival_time(void)
        struct timeval tv;
        uint32_t qat;
 
-       char m_qat[] = "Query arrival time lookup failed: errno=%d: %s";
-
        if (gettimeofday(&tv, NULL) < 0) {
                if (PIM_DEBUG_MTRACE)
-                       zlog_warn(m_qat, errno, safe_strerror(errno));
+                       zlog_warn("Query arrival time lookup failed: errno=%d: %s",
+                                 errno, safe_strerror(errno));
                return 0;
        }
        /* not sure second offset correct, as I get different value */