Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

isdn: fix misspelling of current function in string

Replace a misspelled function name by %s and then __func__.

In the first case, the print is just dropped, because kmalloc itself does
enough error reporting.

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>

authored by

Julia Lawall and committed by
David S. Miller
eeb4e6d1 bbc79751

+9 -10
+1 -1
drivers/isdn/hisax/hfc_2bs0.c
··· 31 31 to--; 32 32 } 33 33 if (!to) { 34 - printk(KERN_WARNING "HiSax: waitforBusy timeout\n"); 34 + printk(KERN_WARNING "HiSax: %s timeout\n", __func__); 35 35 return (0); 36 36 } else 37 37 return (to);
+2 -1
drivers/isdn/hisax/hfc_sx.c
··· 1159 1159 case (PH_PULL | INDICATION): 1160 1160 spin_lock_irqsave(&bcs->cs->lock, flags); 1161 1161 if (bcs->tx_skb) { 1162 - printk(KERN_WARNING "hfc_l2l1: this shouldn't happen\n"); 1162 + printk(KERN_WARNING "%s: this shouldn't happen\n", 1163 + __func__); 1163 1164 } else { 1164 1165 // test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); 1165 1166 bcs->tx_skb = skb;
+2 -3
drivers/isdn/hisax/hfc_usb.c
··· 927 927 fifo->active = 1; /* must be marked active */ 928 928 errcode = usb_submit_urb(fifo->urb, GFP_KERNEL); 929 929 if (errcode) { 930 - printk(KERN_ERR 931 - "HFC-S USB: submit URB error(start_int_info): status:%i\n", 932 - errcode); 930 + printk(KERN_ERR "HFC-S USB: submit URB error(%s): status:%i\n", 931 + __func__, errcode); 933 932 fifo->active = 0; 934 933 fifo->skbuff = NULL; 935 934 }
+1 -1
drivers/isdn/hisax/ipacx.c
··· 580 580 if (cs->debug & L1_DEB_HSCX_FIFO) { 581 581 char *t = bcs->blog; 582 582 583 - t += sprintf(t, "chb_fill_fifo() B-%d cnt %d", hscx, count); 583 + t += sprintf(t, "%s() B-%d cnt %d", __func__, hscx, count); 584 584 QuickHex(t, ptr, count); 585 585 debugl1(cs, "%s", bcs->blog); 586 586 }
+1 -1
drivers/isdn/hisax/isdnl1.c
··· 867 867 break; 868 868 default: 869 869 if (cs->debug) 870 - debugl1(cs, "l1msg %04X unhandled", pr); 870 + debugl1(cs, "%s %04X unhandled", __func__, pr); 871 871 break; 872 872 } 873 873 st = st->next;
+1 -1
drivers/isdn/hisax/isdnl3.c
··· 153 153 newl3state(struct l3_process *pc, int state) 154 154 { 155 155 if (pc->debug & L3_DEB_STATE) 156 - l3_debug(pc->st, "newstate cr %d %d --> %d", 156 + l3_debug(pc->st, "%s cr %d %d --> %d", __func__, 157 157 pc->callref & 0x7F, 158 158 pc->state, state); 159 159 pc->state = state;
+1 -1
drivers/isdn/hysdn/hycapi.c
··· 501 501 { 502 502 hycapictrl_info *cinfo = (hycapictrl_info *)(ctrl->driverdata); 503 503 #ifdef HYCAPI_PRINTFNAMES 504 - printk(KERN_NOTICE "hycapi_proc_info\n"); 504 + printk(KERN_NOTICE "%s\n", __func__); 505 505 #endif 506 506 if (!cinfo) 507 507 return "";
-1
drivers/isdn/pcbit/layer2.c
··· 85 85 } 86 86 if ((frame = kmalloc(sizeof(struct frame_buf), 87 87 GFP_ATOMIC)) == NULL) { 88 - printk(KERN_WARNING "pcbit_2_write: kmalloc failed\n"); 89 88 dev_kfree_skb(skb); 90 89 return -1; 91 90 }