summaryrefslogtreecommitdiff
path: root/ofproto/ofproto-dpif.c
diff options
context:
space:
mode:
authorShu Shen <shu.shen@gmail.com>2017-01-13 17:51:00 -0800
committerBen Pfaff <blp@ovn.org>2017-01-14 08:32:01 -0800
commit94783c7cfb45bcc4846b7c07663f4c5864a5edf0 (patch)
tree541acdd22fb863d1ac1ceb605d2a1866ff5d70d6 /ofproto/ofproto-dpif.c
parent2041809932c65f71acb55ae493e33f5372f3c93d (diff)
downloadopenvswitch-94783c7cfb45bcc4846b7c07663f4c5864a5edf0.tar.gz
Use PRIu32 format for ofp_port_t
Although ofp_port_t uses a 16-bit range, it is defined as a 32-bit type. The format strings throughout the code base were using PRIu16 for ofp_port_t which leads to the compiler to throw Wformat message on platforms that don't promote 16-bit to 32-bit integers, e.g., on macOS. Signed-off-by: Shu Shen <shu.shen@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ofproto/ofproto-dpif.c')
-rw-r--r--ofproto/ofproto-dpif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c
index 3b274eebb..72e91b941 100644
--- a/ofproto/ofproto-dpif.c
+++ b/ofproto/ofproto-dpif.c
@@ -3882,7 +3882,7 @@ rule_dpif_lookup_from_table(struct ofproto_dpif *ofproto,
port = ofp_port_to_ofport(ofproto, old_in_port);
if (!port) {
- VLOG_WARN_RL(&rl, "packet-in on unknown OpenFlow port %"PRIu16,
+ VLOG_WARN_RL(&rl, "packet-in on unknown OpenFlow port %"PRIu32,
old_in_port);
} else if (!(port->up.pp.config & OFPUTIL_PC_NO_PACKET_IN)) {
rule = ofproto->miss_rule;