net: enic: use correct type specifier
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>
Sun, 31 Jul 2016 09:10:08 +0000 (11:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Aug 2016 20:32:52 +0000 (13:32 -0700)
i is defined as unsigned.
So print it with %u.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cisco/enic/enic_main.c

index f15560a0671804df24c7ac2ae61cb6b9b3fd5f01..48f82ab6c25b19811c5088aab0ad37a62f4e922f 100644 (file)
@@ -1566,7 +1566,7 @@ static int enic_request_intr(struct enic *enic)
                        intr = enic_msix_rq_intr(enic, i);
                        snprintf(enic->msix[intr].devname,
                                sizeof(enic->msix[intr].devname),
-                               "%.11s-rx-%d", netdev->name, i);
+                               "%.11s-rx-%u", netdev->name, i);
                        enic->msix[intr].isr = enic_isr_msix;
                        enic->msix[intr].devid = &enic->napi[i];
                }
@@ -1577,7 +1577,7 @@ static int enic_request_intr(struct enic *enic)
                        intr = enic_msix_wq_intr(enic, i);
                        snprintf(enic->msix[intr].devname,
                                sizeof(enic->msix[intr].devname),
-                               "%.11s-tx-%d", netdev->name, i);
+                               "%.11s-tx-%u", netdev->name, i);
                        enic->msix[intr].isr = enic_isr_msix;
                        enic->msix[intr].devid = &enic->napi[wq];
                }