aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulia Lawall <julia.lawall@lip6.fr>2014-12-07 14:20:47 -0500
committerDavid S. Miller <davem@davemloft.net>2014-12-09 16:18:46 -0500
commiteeb4e6d16672cf6ad1cc4c331a363560afe0d23a (patch)
treeee600b8cb6ec626de103387ab43e95b20f9e0f88
parentbbc79751ac2445e7297cb9a9961e2d72aa1daf66 (diff)
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>
-rw-r--r--drivers/isdn/hisax/hfc_2bs0.c2
-rw-r--r--drivers/isdn/hisax/hfc_sx.c3
-rw-r--r--drivers/isdn/hisax/hfc_usb.c5
-rw-r--r--drivers/isdn/hisax/ipacx.c2
-rw-r--r--drivers/isdn/hisax/isdnl1.c2
-rw-r--r--drivers/isdn/hisax/isdnl3.c2
-rw-r--r--drivers/isdn/hysdn/hycapi.c2
-rw-r--r--drivers/isdn/pcbit/layer2.c1
8 files changed, 9 insertions, 10 deletions
diff --git a/drivers/isdn/hisax/hfc_2bs0.c b/drivers/isdn/hisax/hfc_2bs0.c
index 838531b6a60e..14dada42874e 100644
--- a/drivers/isdn/hisax/hfc_2bs0.c
+++ b/drivers/isdn/hisax/hfc_2bs0.c
@@ -31,7 +31,7 @@ WaitForBusy(struct IsdnCardState *cs)
31 to--; 31 to--;
32 } 32 }
33 if (!to) { 33 if (!to) {
34 printk(KERN_WARNING "HiSax: waitforBusy timeout\n"); 34 printk(KERN_WARNING "HiSax: %s timeout\n", __func__);
35 return (0); 35 return (0);
36 } else 36 } else
37 return (to); 37 return (to);
diff --git a/drivers/isdn/hisax/hfc_sx.c b/drivers/isdn/hisax/hfc_sx.c
index fa1fefd711cd..b1fad81f0722 100644
--- a/drivers/isdn/hisax/hfc_sx.c
+++ b/drivers/isdn/hisax/hfc_sx.c
@@ -1159,7 +1159,8 @@ hfcsx_l2l1(struct PStack *st, int pr, void *arg)
1159 case (PH_PULL | INDICATION): 1159 case (PH_PULL | INDICATION):
1160 spin_lock_irqsave(&bcs->cs->lock, flags); 1160 spin_lock_irqsave(&bcs->cs->lock, flags);
1161 if (bcs->tx_skb) { 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 } else { 1164 } else {
1164// test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); 1165// test_and_set_bit(BC_FLG_BUSY, &bcs->Flag);
1165 bcs->tx_skb = skb; 1166 bcs->tx_skb = skb;
diff --git a/drivers/isdn/hisax/hfc_usb.c b/drivers/isdn/hisax/hfc_usb.c
index 849a80752685..678bd5224bc3 100644
--- a/drivers/isdn/hisax/hfc_usb.c
+++ b/drivers/isdn/hisax/hfc_usb.c
@@ -927,9 +927,8 @@ start_int_fifo(usb_fifo *fifo)
927 fifo->active = 1; /* must be marked active */ 927 fifo->active = 1; /* must be marked active */
928 errcode = usb_submit_urb(fifo->urb, GFP_KERNEL); 928 errcode = usb_submit_urb(fifo->urb, GFP_KERNEL);
929 if (errcode) { 929 if (errcode) {
930 printk(KERN_ERR 930 printk(KERN_ERR "HFC-S USB: submit URB error(%s): status:%i\n",
931 "HFC-S USB: submit URB error(start_int_info): status:%i\n", 931 __func__, errcode);
932 errcode);
933 fifo->active = 0; 932 fifo->active = 0;
934 fifo->skbuff = NULL; 933 fifo->skbuff = NULL;
935 } 934 }
diff --git a/drivers/isdn/hisax/ipacx.c b/drivers/isdn/hisax/ipacx.c
index 5faa5de24305..9cc26b40a437 100644
--- a/drivers/isdn/hisax/ipacx.c
+++ b/drivers/isdn/hisax/ipacx.c
@@ -580,7 +580,7 @@ bch_fill_fifo(struct BCState *bcs)
580 if (cs->debug & L1_DEB_HSCX_FIFO) { 580 if (cs->debug & L1_DEB_HSCX_FIFO) {
581 char *t = bcs->blog; 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 QuickHex(t, ptr, count); 584 QuickHex(t, ptr, count);
585 debugl1(cs, "%s", bcs->blog); 585 debugl1(cs, "%s", bcs->blog);
586 } 586 }
diff --git a/drivers/isdn/hisax/isdnl1.c b/drivers/isdn/hisax/isdnl1.c
index 800095781bfb..a560842c0e48 100644
--- a/drivers/isdn/hisax/isdnl1.c
+++ b/drivers/isdn/hisax/isdnl1.c
@@ -867,7 +867,7 @@ l1_msg(struct IsdnCardState *cs, int pr, void *arg) {
867 break; 867 break;
868 default: 868 default:
869 if (cs->debug) 869 if (cs->debug)
870 debugl1(cs, "l1msg %04X unhandled", pr); 870 debugl1(cs, "%s %04X unhandled", __func__, pr);
871 break; 871 break;
872 } 872 }
873 st = st->next; 873 st = st->next;
diff --git a/drivers/isdn/hisax/isdnl3.c b/drivers/isdn/hisax/isdnl3.c
index 45b03840f716..c754706f83cd 100644
--- a/drivers/isdn/hisax/isdnl3.c
+++ b/drivers/isdn/hisax/isdnl3.c
@@ -153,7 +153,7 @@ void
153newl3state(struct l3_process *pc, int state) 153newl3state(struct l3_process *pc, int state)
154{ 154{
155 if (pc->debug & L3_DEB_STATE) 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 pc->callref & 0x7F, 157 pc->callref & 0x7F,
158 pc->state, state); 158 pc->state, state);
159 pc->state = state; 159 pc->state = state;
diff --git a/drivers/isdn/hysdn/hycapi.c b/drivers/isdn/hysdn/hycapi.c
index 00aad10507d8..93bae94314a6 100644
--- a/drivers/isdn/hysdn/hycapi.c
+++ b/drivers/isdn/hysdn/hycapi.c
@@ -501,7 +501,7 @@ static char *hycapi_procinfo(struct capi_ctr *ctrl)
501{ 501{
502 hycapictrl_info *cinfo = (hycapictrl_info *)(ctrl->driverdata); 502 hycapictrl_info *cinfo = (hycapictrl_info *)(ctrl->driverdata);
503#ifdef HYCAPI_PRINTFNAMES 503#ifdef HYCAPI_PRINTFNAMES
504 printk(KERN_NOTICE "hycapi_proc_info\n"); 504 printk(KERN_NOTICE "%s\n", __func__);
505#endif 505#endif
506 if (!cinfo) 506 if (!cinfo)
507 return ""; 507 return "";
diff --git a/drivers/isdn/pcbit/layer2.c b/drivers/isdn/pcbit/layer2.c
index 42ecfef80132..46e1240ae074 100644
--- a/drivers/isdn/pcbit/layer2.c
+++ b/drivers/isdn/pcbit/layer2.c
@@ -85,7 +85,6 @@ pcbit_l2_write(struct pcbit_dev *dev, ulong msg, ushort refnum,
85 } 85 }
86 if ((frame = kmalloc(sizeof(struct frame_buf), 86 if ((frame = kmalloc(sizeof(struct frame_buf),
87 GFP_ATOMIC)) == NULL) { 87 GFP_ATOMIC)) == NULL) {
88 printk(KERN_WARNING "pcbit_2_write: kmalloc failed\n");
89 dev_kfree_skb(skb); 88 dev_kfree_skb(skb);
90 return -1; 89 return -1;
91 } 90 }