hp100: fix misspelling of current function in string
authorJulia Lawall <julia.lawall@lip6.fr>
Sun, 7 Dec 2014 19:20:54 +0000 (20:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Dec 2014 21:18:47 +0000 (16:18 -0500)
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>
drivers/net/ethernet/hp/hp100.c

index 76a6e0c77d69e1a01544a388b465e7e82ddbfd87..ae6e30d39f0f6b07ac8b9b2fec78bd9eb250e535 100644 (file)
@@ -490,7 +490,8 @@ 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;
        }
 
@@ -498,7 +499,9 @@ static int hp100_probe1(struct net_device *dev, int ioaddr, u_char bus,
        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;
        }