[ovs-git] [openvswitch/ovs] 043c23: Use PRIu32 format for ofp_port_t
noreply at github.com
Sat Jan 14 16:39:37 UTC 2017
Author: Shu Shen <shu.shen at gmail.com>
Date: 2017-01-14 (Sat, 14 Jan 2017)
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 at gmail.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
More information about the git