diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-07-16 20:17:05 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-07-16 20:30:55 -0400 |
| commit | 8f86bb067ee9a7f5080da1406b9d03ce3dff884e (patch) | |
| tree | 3d62d4b472d966b6b0c1de564995df247d362a02 /zebra/zapi_msg.c | |
| parent | a04686849fdf2f8bc81049d51c40a45c492b1f7f (diff) | |
zebra: Guard debug messages
A bunch of debug code has snuck in that is unguarded.
Fix this.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zapi_msg.c')
| -rw-r--r-- | zebra/zapi_msg.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c index 98bb2eda60..387c09be87 100644 --- a/zebra/zapi_msg.c +++ b/zebra/zapi_msg.c @@ -1938,9 +1938,10 @@ static void zread_get_label_chunk(struct zserv *client, struct stream *msg, "Unable to assign Label Chunk of size %u to %s instance %u", size, zebra_route_string(proto), instance); else - zlog_debug("Assigned Label Chunk %u - %u to %s instance %u", - lmc->start, lmc->end, - zebra_route_string(proto), instance); + if (IS_ZEBRA_DEBUG_PACKET) + zlog_debug("Assigned Label Chunk %u - %u to %s instance %u", + lmc->start, lmc->end, + zebra_route_string(proto), instance); stream_failure: return; |
