aboutsummaryrefslogtreecommitdiff
path: root/lib/netlink-socket.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-01-11 11:01:08 -0800
committerBen Pfaff <blp@nicira.com>2011-01-27 09:26:06 -0800
commit727ef33f12f7736961455d1835e654687efc4708 (patch)
treecb74a0e055c0cc1e11bd9796489bc77a61e20593 /lib/netlink-socket.c
parentc6eab56db47739d73675ff181a03eb1923303284 (diff)
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 <ethan@nicira.com>.
Diffstat (limited to 'lib/netlink-socket.c')
-rw-r--r--lib/netlink-socket.c4
1 files 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;
}