Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eeb4e6d1 authored by Julia Lawall's avatar Julia Lawall Committed by David S. Miller
Browse files

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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bbc79751
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ WaitForBusy(struct IsdnCardState *cs)
		to--;
	}
	if (!to) {
		printk(KERN_WARNING "HiSax: waitforBusy timeout\n");
		printk(KERN_WARNING "HiSax: %s timeout\n", __func__);
		return (0);
	} else
		return (to);
+2 −1
Original line number Diff line number Diff line
@@ -1159,7 +1159,8 @@ hfcsx_l2l1(struct PStack *st, int pr, void *arg)
	case (PH_PULL | INDICATION):
		spin_lock_irqsave(&bcs->cs->lock, flags);
		if (bcs->tx_skb) {
			printk(KERN_WARNING "hfc_l2l1: this shouldn't happen\n");
			printk(KERN_WARNING "%s: this shouldn't happen\n",
			       __func__);
		} else {
//				test_and_set_bit(BC_FLG_BUSY, &bcs->Flag);
			bcs->tx_skb = skb;
+2 −3
Original line number Diff line number Diff line
@@ -927,9 +927,8 @@ start_int_fifo(usb_fifo *fifo)
	fifo->active = 1;	/* must be marked active */
	errcode = usb_submit_urb(fifo->urb, GFP_KERNEL);
	if (errcode) {
		printk(KERN_ERR
		       "HFC-S USB: submit URB error(start_int_info): status:%i\n",
		       errcode);
		printk(KERN_ERR "HFC-S USB: submit URB error(%s): status:%i\n",
		       __func__, errcode);
		fifo->active = 0;
		fifo->skbuff = NULL;
	}
+1 −1
Original line number Diff line number Diff line
@@ -580,7 +580,7 @@ bch_fill_fifo(struct BCState *bcs)
	if (cs->debug & L1_DEB_HSCX_FIFO) {
		char *t = bcs->blog;

		t += sprintf(t, "chb_fill_fifo() B-%d cnt %d", hscx, count);
		t += sprintf(t, "%s() B-%d cnt %d", __func__, hscx, count);
		QuickHex(t, ptr, count);
		debugl1(cs, "%s", bcs->blog);
	}
+1 −1
Original line number Diff line number Diff line
@@ -867,7 +867,7 @@ l1_msg(struct IsdnCardState *cs, int pr, void *arg) {
			break;
		default:
			if (cs->debug)
				debugl1(cs, "l1msg %04X unhandled", pr);
				debugl1(cs, "%s %04X unhandled", __func__, pr);
			break;
		}
		st = st->next;
Loading