Commit 8dce3e6d authored by Julia Lawall's avatar Julia Lawall Committed by John W. Linville

hostap_cs: 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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent da8fbbfd
...@@ -381,18 +381,15 @@ static void prism2_pccard_genesis_reset(local_info_t *local, int hcr) ...@@ -381,18 +381,15 @@ static void prism2_pccard_genesis_reset(local_info_t *local, int hcr)
res = pcmcia_read_config_byte(hw_priv->link, CISREG_COR, &old_cor); res = pcmcia_read_config_byte(hw_priv->link, CISREG_COR, &old_cor);
if (res != 0) { if (res != 0) {
printk(KERN_DEBUG "prism2_pccard_genesis_sreset failed 1 " printk(KERN_DEBUG "%s failed 1 (%d)\n", __func__, res);
"(%d)\n", res);
return; return;
} }
printk(KERN_DEBUG "prism2_pccard_genesis_sreset: original COR %02x\n", printk(KERN_DEBUG "%s: original COR %02x\n", __func__, old_cor);
old_cor);
res = pcmcia_write_config_byte(hw_priv->link, CISREG_COR, res = pcmcia_write_config_byte(hw_priv->link, CISREG_COR,
old_cor | COR_SOFT_RESET); old_cor | COR_SOFT_RESET);
if (res != 0) { if (res != 0) {
printk(KERN_DEBUG "prism2_pccard_genesis_sreset failed 2 " printk(KERN_DEBUG "%s failed 2 (%d)\n", __func__, res);
"(%d)\n", res);
return; return;
} }
...@@ -401,8 +398,7 @@ static void prism2_pccard_genesis_reset(local_info_t *local, int hcr) ...@@ -401,8 +398,7 @@ static void prism2_pccard_genesis_reset(local_info_t *local, int hcr)
/* Setup Genesis mode */ /* Setup Genesis mode */
res = pcmcia_write_config_byte(hw_priv->link, CISREG_CCSR, hcr); res = pcmcia_write_config_byte(hw_priv->link, CISREG_CCSR, hcr);
if (res != 0) { if (res != 0) {
printk(KERN_DEBUG "prism2_pccard_genesis_sreset failed 3 " printk(KERN_DEBUG "%s failed 3 (%d)\n", __func__, res);
"(%d)\n", res);
return; return;
} }
mdelay(10); mdelay(10);
...@@ -410,8 +406,7 @@ static void prism2_pccard_genesis_reset(local_info_t *local, int hcr) ...@@ -410,8 +406,7 @@ static void prism2_pccard_genesis_reset(local_info_t *local, int hcr)
res = pcmcia_write_config_byte(hw_priv->link, CISREG_COR, res = pcmcia_write_config_byte(hw_priv->link, CISREG_COR,
old_cor & ~COR_SOFT_RESET); old_cor & ~COR_SOFT_RESET);
if (res != 0) { if (res != 0) {
printk(KERN_DEBUG "prism2_pccard_genesis_sreset failed 4 " printk(KERN_DEBUG "%s failed 4 (%d)\n", __func__, res);
"(%d)\n", res);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment