summaryrefslogtreecommitdiff
path: root/zebra/zserv.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-02-11 08:21:12 +0100
committerGitHub <noreply@github.com>2019-02-11 08:21:12 +0100
commitfb85ce1b812d892a07a4f942b4cfade9442b9a2b (patch)
tree18b65fb19ac46d56533badf4c30ce534835b4a12 /zebra/zserv.c
parent233c5edffefb9325c43fc444c9e989d5949464c6 (diff)
parent494247b58c6161bbcb0323c86cc414f42ac0c038 (diff)
Merge pull request #3770 from donaldsharp/detailed_debugs
zebra: Update zserv debug messages to give a bit more useful info
Diffstat (limited to 'zebra/zserv.c')
-rw-r--r--zebra/zserv.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/zebra/zserv.c b/zebra/zserv.c
index ad052d6a70..6532491cef 100644
--- a/zebra/zserv.c
+++ b/zebra/zserv.c
@@ -405,8 +405,10 @@ static int zserv_read(struct thread *thread)
}
/* Debug packet information. */
- if (IS_ZEBRA_DEBUG_EVENT)
- zlog_debug("zebra message comes from socket [%d]",
+ if (IS_ZEBRA_DEBUG_PACKET)
+ zlog_debug("zebra message[%s:%u:%u] comes from socket [%d]",
+ zserv_command_string(hdr.command),
+ hdr.vrf_id, hdr.length,
sock);
if (IS_ZEBRA_DEBUG_PACKET && IS_ZEBRA_DEBUG_RECV)
@@ -442,7 +444,8 @@ static int zserv_read(struct thread *thread)
}
if (IS_ZEBRA_DEBUG_PACKET)
- zlog_debug("Read %d packets", p2p_orig - p2p);
+ zlog_debug("Read %d packets from client: %s", p2p_orig - p2p,
+ zebra_route_string(client->proto));
/* Reschedule ourselves */
zserv_client_event(client, ZSERV_CLIENT_READ);