diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-09-14 23:48:51 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-09-14 23:48:51 +0200 |
commit | 87b5d1b098d9803848f91f85ba02a1f3c92bc33b (patch) | |
tree | 0ff98603b50e1015d093981078590c1e8bad0f3c /zebra/kernel_netlink.c | |
parent | Merge pull request #3018 from donaldsharp/twheel_names (diff) | |
download | frr-87b5d1b098d9803848f91f85ba02a1f3c92bc33b.tar.xz frr-87b5d1b098d9803848f91f85ba02a1f3c92bc33b.zip |
zebra: Print out netlink message type instead of number
When we are displaying data about a netlink message
in debugs or errors, print out the message type
as a string instead of a number.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/kernel_netlink.c')
-rw-r--r-- | zebra/kernel_netlink.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/kernel_netlink.c b/zebra/kernel_netlink.c index 1b713cc8c..d35230d7b 100644 --- a/zebra/kernel_netlink.c +++ b/zebra/kernel_netlink.c @@ -641,8 +641,9 @@ static void netlink_parse_extended_ack(struct nlmsghdr *h) * but noticing it for later. */ err_nlh = &err->msg; - zlog_debug("%s: Received %d extended Ack", - __PRETTY_FUNCTION__, err_nlh->nlmsg_type); + zlog_debug("%s: Received %s extended Ack", + __PRETTY_FUNCTION__, + nl_msg_type_to_str(err_nlh->nlmsg_type)); } } |