[ovs-dev] [PATCH] [PATCHv2] ofp-meter: Fix ds_put_format that treats enum type as short integer

Ben Pfaff blp at ovn.org
Wed Jun 27 02:28:44 UTC 2018


On Tue, Jun 26, 2018 at 02:23:49PM -0700, Yifeng Sun wrote:
> 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>
> ---
> v1 -> v2: Use the correct way to cast enum types as described by Ben.

Applied, thanks!


More information about the dev mailing list