diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-06-29 07:42:44 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-06-29 07:44:42 -0400 |
| commit | a22e470b39fbfec4cf95b2452f43af8b702ede6a (patch) | |
| tree | e51a11139aae24d5919a68e3662bf0d3ac23f0d5 | |
| parent | 61ea3951a2ecd0d439cb772d566f43e544c8ba48 (diff) | |
pimd: Make received packet zlog_err a zlog_debug
When receiving packets and the parse fails
a zlog_err is generated. This should be
protected by a debug.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
| -rw-r--r-- | pimd/pim_pim.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pimd/pim_pim.c b/pimd/pim_pim.c index 60507970d9..eedbc116d8 100644 --- a/pimd/pim_pim.c +++ b/pimd/pim_pim.c @@ -349,8 +349,9 @@ static int pim_sock_read(struct thread *t) int fail = pim_pim_packet(ifp, buf, len); if (fail) { - zlog_warn("%s: pim_pim_packet() return=%d", - __PRETTY_FUNCTION__, fail); + if (PIM_DEBUG_PIM_PACKETS) + zlog_debug("%s: pim_pim_packet() return=%d", + __PRETTY_FUNCTION__, fail); goto done; } |
