Commit 8d546f58 authored by xypron.glpk@gmx.de's avatar xypron.glpk@gmx.de Committed by David S. Miller

net: enic: use correct type specifier

i is defined as unsigned.
So print it with %u.
Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4c2e9e29
...@@ -1566,7 +1566,7 @@ static int enic_request_intr(struct enic *enic) ...@@ -1566,7 +1566,7 @@ static int enic_request_intr(struct enic *enic)
intr = enic_msix_rq_intr(enic, i); intr = enic_msix_rq_intr(enic, i);
snprintf(enic->msix[intr].devname, snprintf(enic->msix[intr].devname,
sizeof(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].isr = enic_isr_msix;
enic->msix[intr].devid = &enic->napi[i]; enic->msix[intr].devid = &enic->napi[i];
} }
...@@ -1577,7 +1577,7 @@ static int enic_request_intr(struct enic *enic) ...@@ -1577,7 +1577,7 @@ static int enic_request_intr(struct enic *enic)
intr = enic_msix_wq_intr(enic, i); intr = enic_msix_wq_intr(enic, i);
snprintf(enic->msix[intr].devname, snprintf(enic->msix[intr].devname,
sizeof(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].isr = enic_isr_msix;
enic->msix[intr].devid = &enic->napi[wq]; enic->msix[intr].devid = &enic->napi[wq];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment