summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Yongjun <yjwei@cn.fujitsu.com>2010-05-17 15:14:55 +0800
committerBen Pfaff <blp@nicira.com>2010-05-17 09:46:46 -0700
commit100e95db240fdea0e2b650e9fc1b59a962ae3847 (patch)
tree09157f8535f1a2a789cb86718b3b288ec1634489
parent6fce4487240b12104f3984e0bc36f9183e2fcccb (diff)
downloadopenvswitch-100e95db240fdea0e2b650e9fc1b59a962ae3847.tar.gz
ofproto: fix compile warning of ofproto/ofproto.c
This patch fixed the following compile warning: ofproto/ofproto.c: In function 'handle_role_request': ofproto/ofproto.c:3543: warning: format '%zu' expects type 'size_t', but argument 5 has type 'int' ofproto/ofproto.c: In function 'handle_vendor': ofproto/ofproto.c:3593: warning: format '%zu' expects type 'size_t', but argument 5 has type 'int' ofproto/ofproto.c:3602: warning: format '%zu' expects type 'size_t', but argument 5 has type 'int' Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
-rw-r--r--ofproto/ofproto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c
index dcf8683ff..41977874b 100644
--- a/ofproto/ofproto.c
+++ b/ofproto/ofproto.c
@@ -3540,7 +3540,7 @@ handle_role_request(struct ofproto *ofproto,
uint32_t role;
if (ntohs(msg->header.length) != sizeof *nrr) {
- VLOG_WARN_RL(&rl, "received role request of length %zu (expected %zu)",
+ VLOG_WARN_RL(&rl, "received role request of length %u (expected %zu)",
ntohs(msg->header.length), sizeof *nrr);
return ofp_mkerr(OFPET_BAD_REQUEST, OFPBRC_BAD_LEN);
}
@@ -3590,7 +3590,7 @@ handle_vendor(struct ofproto *p, struct ofconn *ofconn, void *msg)
struct nicira_header *nh;
if (ntohs(ovh->header.length) < sizeof(struct ofp_vendor_header)) {
- VLOG_WARN_RL(&rl, "received vendor message of length %zu "
+ VLOG_WARN_RL(&rl, "received vendor message of length %u "
"(expected at least %zu)",
ntohs(ovh->header.length), sizeof(struct ofp_vendor_header));
return ofp_mkerr(OFPET_BAD_REQUEST, OFPBRC_BAD_LEN);
@@ -3599,7 +3599,7 @@ handle_vendor(struct ofproto *p, struct ofconn *ofconn, void *msg)
return ofp_mkerr(OFPET_BAD_REQUEST, OFPBRC_BAD_VENDOR);
}
if (ntohs(ovh->header.length) < sizeof(struct nicira_header)) {
- VLOG_WARN_RL(&rl, "received Nicira vendor message of length %zu "
+ VLOG_WARN_RL(&rl, "received Nicira vendor message of length %u "
"(expected at least %zu)",
ntohs(ovh->header.length), sizeof(struct nicira_header));
return ofp_mkerr(OFPET_BAD_REQUEST, OFPBRC_BAD_LEN);