diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-06-06 16:17:45 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-07-24 19:51:39 +0200 |
commit | 5667319bcfc443609b3b394bf01cb75deb72efe9 (patch) | |
tree | 7391f7aeee9982b1e88053b9067b3f96c7f2ab26 /pimd/pim_zlookup.c | |
parent | zebra: Remove strcpy from fast path (diff) | |
download | frr-5667319bcfc443609b3b394bf01cb75deb72efe9.tar.xz frr-5667319bcfc443609b3b394bf01cb75deb72efe9.zip |
pimd: debug guard error message
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_zlookup.c')
-rw-r--r-- | pimd/pim_zlookup.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pimd/pim_zlookup.c b/pimd/pim_zlookup.c index 5cfa1357a..3fe2f4d92 100644 --- a/pimd/pim_zlookup.c +++ b/pimd/pim_zlookup.c @@ -530,8 +530,14 @@ int pim_zlookup_sg_statistics(struct channel_oil *c_oil) sg.grp.s_addr = stream_get_ipv4(s); if (sg.src.s_addr != c_oil->oil.mfcc_origin.s_addr || sg.grp.s_addr != c_oil->oil.mfcc_mcastgrp.s_addr) { - zlog_err("%s: Received wrong %s information", - __PRETTY_FUNCTION__, pim_str_sg_dump(&sg)); + if (PIM_DEBUG_ZEBRA) { + struct prefix_sg more; + + more.src = c_oil->oil.mfcc_origin; + more.grp = c_oil->oil.mfcc_mcastgrp; + zlog_err("%s: Received wrong %s information requested", + __PRETTY_FUNCTION__, pim_str_sg_dump(&more)); + } zclient_lookup_failed(zlookup); return -3; } |