From: Donald Sharp Date: Wed, 24 Aug 2016 13:30:25 +0000 (-0400) Subject: pimd: Fix unwrappered debug message X-Git-Tag: frr-3.0-branchpoint~64^2~10^2~265 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=8d63c2d932fa938711fcf9c80be3a3e5d7e2224d;p=mirror%2Ffrr.git pimd: Fix unwrappered debug message When checking with zebra about lastused we were not protecting a debug message. Signed-off-by: Donald Sharp --- diff --git a/pimd/pim_zlookup.c b/pimd/pim_zlookup.c index 6cf6a6b2f7..5c17c50609 100644 --- a/pimd/pim_zlookup.c +++ b/pimd/pim_zlookup.c @@ -520,7 +520,8 @@ pim_zlookup_sg_statistics (struct channel_oil *c_oil) stream_get (&lastused, s, sizeof (lastused)); - zlog_debug ("Received %lld for %s", lastused, pim_str_sg_dump (&sg)); + if (PIM_DEBUG_ZEBRA) + zlog_debug ("Received %lld for %s", lastused, pim_str_sg_dump (&sg)); c_oil->cc.lastused = lastused;