aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulia Lawall <julia.lawall@lip6.fr>2014-12-07 14:20:54 -0500
committerDavid S. Miller <davem@davemloft.net>2014-12-09 16:18:47 -0500
commitd954e87964e482e8d300d6ad623aecf50c32b649 (patch)
treea697b63f5133f789260da7bc08556469a9fdff0a
parent791a1dddd99d5fe759072c88fbac5d4a311e188d (diff)
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>
-rw-r--r--drivers/net/ethernet/hp/hp100.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/ethernet/hp/hp100.c b/drivers/net/ethernet/hp/hp100.c
index 76a6e0c77d69..ae6e30d39f0f 100644
--- a/drivers/net/ethernet/hp/hp100.c
+++ b/drivers/net/ethernet/hp/hp100.c
@@ -490,7 +490,8 @@ static int hp100_probe1(struct net_device *dev, int ioaddr, u_char bus,
490 490
491 eid = hp100_read_id(ioaddr); 491 eid = hp100_read_id(ioaddr);
492 if (eid == NULL) { /* bad checksum? */ 492 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);
494 goto out2; 495 goto out2;
495 } 496 }
496 497
@@ -498,7 +499,9 @@ static int hp100_probe1(struct net_device *dev, int ioaddr, u_char bus,
498 for (i = uc = 0; i < 7; i++) 499 for (i = uc = 0; i < 7; i++)
499 uc += hp100_inb(LAN_ADDR + i); 500 uc += hp100_inb(LAN_ADDR + i);
500 if (uc != 0xff) { 501 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);
502 err = -EIO; 505 err = -EIO;
503 goto out2; 506 goto out2;
504 } 507 }