ixgbe: Fix format string in ixgbe_fcoe.c
authorMasanari Iida <standby24x7@gmail.com>
Tue, 14 Jan 2014 16:14:42 +0000 (01:14 +0900)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 13 Mar 2014 02:05:23 +0000 (19:05 -0700)
cppcheck detected following warning in ixgbe_fcoe.c
(warning) %d in format string (no. 1) requires 'int' but the
argument type is 'unsigned int'.

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
Tested-By: Jack Morgan<jack.morgan@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c

index f58db453a97edd8d6d6f7dfbccb2c6f8edd1f3d3..08726177a3eb12bf967f2355e1df0827deb45e68 100644 (file)
@@ -585,7 +585,7 @@ static int ixgbe_fcoe_dma_pool_alloc(struct ixgbe_fcoe *fcoe,
        struct dma_pool *pool;
        char pool_name[32];
 
-       snprintf(pool_name, 32, "ixgbe_fcoe_ddp_%d", cpu);
+       snprintf(pool_name, 32, "ixgbe_fcoe_ddp_%u", cpu);
 
        pool = dma_pool_create(pool_name, dev, IXGBE_FCPTR_MAX,
                               IXGBE_FCPTR_ALIGN, PAGE_SIZE);