[ovs-git] [openvswitch/ovs] 043c23: Use PRIu32 format for ofp_port_t

GitHub noreply at github.com
Sat Jan 14 16:39:37 UTC 2017


  Branch: refs/heads/branch-2.6
  Home:   https://github.com/openvswitch/ovs
  Commit: 043c23baaa5cdd27fe0f1ed7d64dcd745d4555df
      https://github.com/openvswitch/ovs/commit/043c23baaa5cdd27fe0f1ed7d64dcd745d4555df
  Author: Shu Shen <shu.shen at gmail.com>
  Date:   2017-01-14 (Sat, 14 Jan 2017)

  Changed paths:
    M lib/bundle.c
    M lib/learning-switch.c
    M lib/ofp-actions.c
    M lib/ofp-util.c
    M ofproto/ofproto-dpif-xlate.c
    M ofproto/ofproto-dpif.c
    M ofproto/ofproto.c

  Log Message:
  -----------
  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 mailing list