Skip to content

Commit c5b959e

Browse files
arndbdavem330
authored andcommitted
net: netcp: MAX_SKB_FRAGS is now 'int'
The type of MAX_SKB_FRAGS has changed recently, so the debug printk needs to be updated: drivers/net/ethernet/ti/netcp_core.c: In function 'netcp_create_interface': drivers/net/ethernet/ti/netcp_core.c:2084:30: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Werror=format=] 2084 | dev_err(dev, "tx-pool size too small, must be at least %ld\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fixes: 3948b05 ("net: introduce a config option to tweak MAX_SKB_FRAGS") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 154e07c commit c5b959e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/ti/netcp_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2081,7 +2081,7 @@ static int netcp_create_interface(struct netcp_device *netcp_device,
20812081
netcp->tx_pool_region_id = temp[1];
20822082

20832083
if (netcp->tx_pool_size < MAX_SKB_FRAGS) {
2084-
dev_err(dev, "tx-pool size too small, must be at least %ld\n",
2084+
dev_err(dev, "tx-pool size too small, must be at least %d\n",
20852085
MAX_SKB_FRAGS);
20862086
ret = -ENODEV;
20872087
goto quit;

0 commit comments

Comments
 (0)