Skip to content

Commit d954e87

Browse files
JuliaLawalldavem330
authored andcommitted
hp100: fix misspelling of current function in string
Replace a misspelled function name by %s and then __func__. This was done using Coccinelle, including the use of Levenshtein distance, as proposed by Rasmus Villemoes. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 791a1dd commit d954e87

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

drivers/net/ethernet/hp/hp100.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,15 +490,18 @@ static int hp100_probe1(struct net_device *dev, int ioaddr, u_char bus,
490490

491491
eid = hp100_read_id(ioaddr);
492492
if (eid == NULL) { /* bad checksum? */
493-
printk(KERN_WARNING "hp100_probe: bad ID checksum at base port 0x%x\n", ioaddr);
493+
printk(KERN_WARNING "%s: bad ID checksum at base port 0x%x\n",
494+
__func__, ioaddr);
494495
goto out2;
495496
}
496497

497498
hp100_page(ID_MAC_ADDR);
498499
for (i = uc = 0; i < 7; i++)
499500
uc += hp100_inb(LAN_ADDR + i);
500501
if (uc != 0xff) {
501-
printk(KERN_WARNING "hp100_probe: bad lan address checksum at port 0x%x)\n", ioaddr);
502+
printk(KERN_WARNING
503+
"%s: bad lan address checksum at port 0x%x)\n",
504+
__func__, ioaddr);
502505
err = -EIO;
503506
goto out2;
504507
}

0 commit comments

Comments
 (0)