Skip to content

Commit 2f7c1fd

Browse files
Tom Rixanguy11
authored andcommitted
igb: remove h from printk format specifier
This change fixes the checkpatch warning described in this commit cbacb5a ("docs: printk-formats: Stop encouraging use of unnecessary %h[xudi] and %hh[xudi]") Standard integer promotion is already done and %hx and %hhx is useless so do not encourage the use of %hh[xudi] or %h[xudi]. Signed-off-by: Tom Rix <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent 6e6026f commit 2f7c1fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/igb/igb_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3156,7 +3156,7 @@ static int igb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
31563156
* the PCIe SR-IOV capability.
31573157
*/
31583158
if (pdev->is_virtfn) {
3159-
WARN(1, KERN_ERR "%s (%hx:%hx) should not be a VF!\n",
3159+
WARN(1, KERN_ERR "%s (%x:%x) should not be a VF!\n",
31603160
pci_name(pdev), pdev->vendor, pdev->device);
31613161
return -EINVAL;
31623162
}

0 commit comments

Comments
 (0)