[Intel-wired-lan] [PATCH] ixgbe: Resolve cppcheck format string warning

Bowers, AndrewX andrewx.bowers at intel.com
Mon Jun 5 23:01:24 UTC 2017


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Tony Nguyen
> Sent: Thursday, June 1, 2017 12:06 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH] ixgbe: Resolve cppcheck format string
> warning
> 
> cppcheck warns that the format string is incorrect in the function
> ixgbe_get_strings().  Since the value cannot be negative, change the variable
> to unsigned which matches the format specifier.
> 
> Signed-off-by: Tony Nguyen <anthony.l.nguyen at intel.com>
> ---
>  drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>




More information about the Intel-wired-lan mailing list