[ovs-git] [openvswitch/ovs] 61677b: ofp-meter: Fix ds_put_format that treats enum type...

GitHub noreply at github.com
Wed Jun 27 02:28:44 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 61677bf976e909c6bfdc03804759767145bb804c
      https://github.com/openvswitch/ovs/commit/61677bf976e909c6bfdc03804759767145bb804c
  Author: Yifeng Sun <pkusunyifeng at gmail.com>
  Date:   2018-06-26 (Tue, 26 Jun 2018)

  Changed paths:
    M lib/ofp-meter.c

  Log Message:
  -----------
  ofp-meter: Fix ds_put_format that treats enum type as short integer

Travis job fails because of the below error and this patch solves this issue.

lib/ofp-meter.c:340:48: error: format specifies type 'unsigned short'
but the argument has underlying type 'unsigned int' [-Werror,-Wformat]
  ds_put_format(s, "flags:0x%"PRIx16" ", flags);

Signed-off-by: Yifeng Sun <pkusunyifeng at gmail.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>



      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the git mailing list