]> git.proxmox.com Git - ovs.git/commit
ofp-meter: Fix ds_put_format that treats enum type as short integer
authorYifeng Sun <pkusunyifeng@gmail.com>
Tue, 26 Jun 2018 21:23:49 +0000 (14:23 -0700)
committerBen Pfaff <blp@ovn.org>
Wed, 27 Jun 2018 02:28:06 +0000 (19:28 -0700)
commit61677bf976e909c6bfdc03804759767145bb804c
treebb548ebeb16e487ef4b938f03d11edf8d6e50328
parentf3f835563ae0fdc99dd31c2a0714d2602f0f6466
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@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/ofp-meter.c