]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ixgbe: Resolve cppcheck format string warning
authorTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 1 Jun 2017 19:06:05 +0000 (12:06 -0700)
committerJack Vogel <jack.vogel@oracle.com>
Fri, 13 Oct 2017 02:43:49 +0000 (19:43 -0700)
commit206ce0910cfbb7b7d1312a5b6cc81ace9a34a56f
tree52b73f55eaafe15652b8b665012268e9dc78bf97
parent2182106fd1b495f971e4e668c616739c83815f7e
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@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Orabug: 26785078
(cherry picked from commit 4ebdf8af3017ce242f37be2ae5e5f655dc9846ef)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
Reviewed-by: Ethan Zhao <ethan.zhao@oracle.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c