From 8d63c2d932fa938711fcf9c80be3a3e5d7e2224d Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 24 Aug 2016 09:30:25 -0400 Subject: [PATCH] pimd: Fix unwrappered debug message When checking with zebra about lastused we were not protecting a debug message. Signed-off-by: Donald Sharp --- pimd/pim_zlookup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5