Skip to content

Commit

Permalink
hp100: fix misspelling of current function in string
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Julia Lawall authored and David S. Miller committed Dec 9, 2014
1 parent 791a1dd commit d954e87
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions drivers/net/ethernet/hp/hp100.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,15 +490,18 @@ static int hp100_probe1(struct net_device *dev, int ioaddr, u_char bus,

eid = hp100_read_id(ioaddr);
if (eid == NULL) { /* bad checksum? */
printk(KERN_WARNING "hp100_probe: bad ID checksum at base port 0x%x\n", ioaddr);
printk(KERN_WARNING "%s: bad ID checksum at base port 0x%x\n",
__func__, ioaddr);
goto out2;
}

hp100_page(ID_MAC_ADDR);
for (i = uc = 0; i < 7; i++)
uc += hp100_inb(LAN_ADDR + i);
if (uc != 0xff) {
printk(KERN_WARNING "hp100_probe: bad lan address checksum at port 0x%x)\n", ioaddr);
printk(KERN_WARNING
"%s: bad lan address checksum at port 0x%x)\n",
__func__, ioaddr);
err = -EIO;
goto out2;
}
Expand Down

0 comments on commit d954e87

Please sign in to comment.