From 727ef33f12f7736961455d1835e654687efc4708 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 11 Jan 2011 11:01:08 -0800 Subject: [PATCH] netlink-socket: Consistently log sequence numbers in hexadecimal. nlmsghdr_to_string() wrote sequence numbers in hex, but nl_sock_transact() wrote them in decimal. This consistently switches to hexadecimal. Reviewed by Ethan Jackson . --- lib/netlink-socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/netlink-socket.c b/lib/netlink-socket.c index 8e8c17da..27811d8f 100644 --- a/lib/netlink-socket.c +++ b/lib/netlink-socket.c @@ -464,7 +464,7 @@ recv: } nlmsghdr = nl_msg_nlmsghdr(reply); if (seq != nlmsghdr->nlmsg_seq) { - VLOG_DBG_RL(&rl, "ignoring seq %"PRIu32" != expected %"PRIu32, + VLOG_DBG_RL(&rl, "ignoring seq %#"PRIx32" != expected %#"PRIx32, nl_msg_nlmsghdr(reply)->nlmsg_seq, seq); ofpbuf_delete(reply); goto recv; @@ -603,7 +603,7 @@ nl_dump_recv(struct nl_dump *dump, struct ofpbuf **bufferp) nlmsghdr = nl_msg_nlmsghdr(buffer); if (dump->seq != nlmsghdr->nlmsg_seq) { - VLOG_DBG_RL(&rl, "ignoring seq %"PRIu32" != expected %"PRIu32, + VLOG_DBG_RL(&rl, "ignoring seq %#"PRIx32" != expected %#"PRIx32, nlmsghdr->nlmsg_seq, dump->seq); return EAGAIN; } -- 2.30.2