[PATCH] liquidio: fix: warning: %u in format string (no. 3) requires 'unsigned int' but the argument type is 'signed int'.

From: YANG LI
Date: Wed Dec 30 2020 - 01:42:37 EST


For safety, modify '%u' to '%d' to keep the type consistent.

Signed-off-by: YANG LI <abaci-bugfix@xxxxxxxxxxxxxxxxx>
Reported-by: Abaci <abaci@xxxxxxxxxxxxxxxxx>
---
drivers/net/ethernet/cavium/liquidio/lio_core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/cavium/liquidio/lio_core.c b/drivers/net/ethernet/cavium/liquidio/lio_core.c
index 37d0641..07846f9 100644
--- a/drivers/net/ethernet/cavium/liquidio/lio_core.c
+++ b/drivers/net/ethernet/cavium/liquidio/lio_core.c
@@ -1109,12 +1109,12 @@ int octeon_setup_interrupt(struct octeon_device *oct, u32 num_ioqs)
for (i = 0 ; i < num_ioq_vectors ; i++) {
if (OCTEON_CN23XX_PF(oct))
snprintf(&queue_irq_names[IRQ_NAME_OFF(i)],
- INTRNAMSIZ, "LiquidIO%u-pf%u-rxtx-%u",
+ INTRNAMSIZ, "LiquidIO%u-pf%u-rxtx-%d",
oct->octeon_id, oct->pf_num, i);

if (OCTEON_CN23XX_VF(oct))
snprintf(&queue_irq_names[IRQ_NAME_OFF(i)],
- INTRNAMSIZ, "LiquidIO%u-vf%u-rxtx-%u",
+ INTRNAMSIZ, "LiquidIO%u-vf%u-rxtx-%d",
oct->octeon_id, oct->vf_num, i);

irqret = request_irq(msix_entries[i].vector,
--
1.8.3.1