diff options
author | Masanari Iida <standby24x7@gmail.com> | 2014-01-14 11:14:42 -0500 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2014-03-12 22:05:23 -0400 |
commit | 0e7bcee42f32b4343f0ec2126cfd8d275905f655 (patch) | |
tree | 26b3fb6108841929f7976262b5aab86a35d569d2 | |
parent | 38da9853aa6d885353f4c96c553ce0462357d5d9 (diff) |
ixgbe: Fix format string in ixgbe_fcoe.c
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>
-rw-r--r-- | drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c index f58db453a97e..08726177a3eb 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c | |||
@@ -585,7 +585,7 @@ static int ixgbe_fcoe_dma_pool_alloc(struct ixgbe_fcoe *fcoe, | |||
585 | struct dma_pool *pool; | 585 | struct dma_pool *pool; |
586 | char pool_name[32]; | 586 | char pool_name[32]; |
587 | 587 | ||
588 | snprintf(pool_name, 32, "ixgbe_fcoe_ddp_%d", cpu); | 588 | snprintf(pool_name, 32, "ixgbe_fcoe_ddp_%u", cpu); |
589 | 589 | ||
590 | pool = dma_pool_create(pool_name, dev, IXGBE_FCPTR_MAX, | 590 | pool = dma_pool_create(pool_name, dev, IXGBE_FCPTR_MAX, |
591 | IXGBE_FCPTR_ALIGN, PAGE_SIZE); | 591 | IXGBE_FCPTR_ALIGN, PAGE_SIZE); |