All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julia Lawall <Julia.Lawall@lip6.fr>
To: "James E.J. Bottomley" <JBottomley@parallels.com>
Cc: kernel-janitors@vger.kernel.org, linux@rasmusvillemoes.dk,
	joe@perches.com, linux-scsi@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 9/20] drivers/scsi: fix misspelling of current function in string
Date: Sun,  7 Dec 2014 20:20:51 +0100	[thread overview]
Message-ID: <1417980062-25151-10-git-send-email-Julia.Lawall@lip6.fr> (raw)
In-Reply-To: <1417980062-25151-1-git-send-email-Julia.Lawall@lip6.fr>

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>

---
The semantic patch is difficult to summarize, but is available in the cover
letter of this patch series.

 drivers/scsi/atp870u.c   |   10 +++++-----
 drivers/scsi/imm.c       |    2 +-
 drivers/scsi/initio.c    |    2 +-
 drivers/scsi/ncr53c8xx.c |    3 ++-
 drivers/scsi/ppa.c       |    2 +-
 5 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/drivers/scsi/initio.c b/drivers/scsi/initio.c
index e5dae7b..85fd163 100644
--- a/drivers/scsi/initio.c
+++ b/drivers/scsi/initio.c
@@ -1034,7 +1034,7 @@ static int initio_bad_seq(struct initio_host * host)
 {
 	struct scsi_ctrl_blk *scb;
 
-	printk("initio_bad_seg c=%d\n", host->index);
+	printk("%s c=%d\n", __func__, host->index);
 
 	if ((scb = host->active) != NULL) {
 		initio_unlink_busy_scb(host, scb);
diff --git a/drivers/scsi/ncr53c8xx.c b/drivers/scsi/ncr53c8xx.c
index 5b93ed8..347fb49 100644
--- a/drivers/scsi/ncr53c8xx.c
+++ b/drivers/scsi/ncr53c8xx.c
@@ -772,7 +772,8 @@ static int __init sym53c8xx__setup(char *str)
 			break;
 #endif
 		default:
-			printk("sym53c8xx_setup: unexpected boot option '%.*s' ignored\n", (int)(pc-cur+1), cur);
+			printk("%s: unexpected boot option '%.*s' ignored\n",
+			       __func__, (int)(pc-cur+1), cur);
 			break;
 		}
 
diff --git a/drivers/scsi/ppa.c b/drivers/scsi/ppa.c
index 1db8b26..4c1f08e 100644
--- a/drivers/scsi/ppa.c
+++ b/drivers/scsi/ppa.c
@@ -365,7 +365,7 @@ static int ppa_in(ppa_struct *dev, char *buffer, int len)
 		break;
 
 	default:
-		printk(KERN_ERR "PPA: bug in ppa_ins()\n");
+		printk(KERN_ERR "PPA: bug in %s()\n", __func__);
 		r = 0;
 		break;
 	}
diff --git a/drivers/scsi/atp870u.c b/drivers/scsi/atp870u.c
index a795d81..ebb4556 100644
--- a/drivers/scsi/atp870u.c
+++ b/drivers/scsi/atp870u.c
@@ -3016,12 +3016,12 @@ flash_ok_885:
 			goto scsi_add_fail;
 		scsi_scan_host(shpnt);
 #ifdef ED_DBGP			
-		printk("atp870u_prob : exit\n");
+		printk("%s : exit\n", __func__);
 #endif		
 		return 0;
 
 scsi_add_fail:
-	printk("atp870u_prob:scsi_add_fail\n");
+	printk("%s:scsi_add_fail\n", __func__);
 	if(ent->device==ATP885_DEVID) {
 		release_region(base_io, 0xff);
 	} else if((ent->device==ATP880_DEVID1)||(ent->device==ATP880_DEVID2)) {
@@ -3030,13 +3030,13 @@ scsi_add_fail:
 		release_region(base_io, 0x40);
 	}
 request_io_fail:
-	printk("atp870u_prob:request_io_fail\n");
+	printk("%s:request_io_fail\n", __func__);
 	free_irq(pdev->irq, shpnt);
 free_tables:
-	printk("atp870u_prob:free_table\n");
+	printk("%s:free_table\n", __func__);
 	atp870u_free_tables(shpnt);
 unregister:
-	printk("atp870u_prob:unregister\n");
+	printk("%s:unregister\n", __func__);
 	scsi_host_put(shpnt);
 	return -1;		
 err_eio:
diff --git a/drivers/scsi/imm.c b/drivers/scsi/imm.c
index 89a8266..1f2a668 100644
--- a/drivers/scsi/imm.c
+++ b/drivers/scsi/imm.c
@@ -439,7 +439,7 @@ static int imm_in(imm_struct *dev, char *buffer, int len)
 		break;
 
 	default:
-		printk("IMM: bug in imm_ins()\n");
+		printk("IMM: bug in %s()\n", __func__);
 		r = 0;
 		break;
 	}


WARNING: multiple messages have this Message-ID (diff)
From: Julia Lawall <Julia.Lawall@lip6.fr>
To: "James E.J. Bottomley" <JBottomley@parallels.com>
Cc: kernel-janitors@vger.kernel.org, linux@rasmusvillemoes.dk,
	joe@perches.com, linux-scsi@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 9/20] drivers/scsi: fix misspelling of current function in string
Date: Sun, 07 Dec 2014 19:20:51 +0000	[thread overview]
Message-ID: <1417980062-25151-10-git-send-email-Julia.Lawall@lip6.fr> (raw)
In-Reply-To: <1417980062-25151-1-git-send-email-Julia.Lawall@lip6.fr>

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>

---
The semantic patch is difficult to summarize, but is available in the cover
letter of this patch series.

 drivers/scsi/atp870u.c   |   10 +++++-----
 drivers/scsi/imm.c       |    2 +-
 drivers/scsi/initio.c    |    2 +-
 drivers/scsi/ncr53c8xx.c |    3 ++-
 drivers/scsi/ppa.c       |    2 +-
 5 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/drivers/scsi/initio.c b/drivers/scsi/initio.c
index e5dae7b..85fd163 100644
--- a/drivers/scsi/initio.c
+++ b/drivers/scsi/initio.c
@@ -1034,7 +1034,7 @@ static int initio_bad_seq(struct initio_host * host)
 {
 	struct scsi_ctrl_blk *scb;
 
-	printk("initio_bad_seg c=%d\n", host->index);
+	printk("%s c=%d\n", __func__, host->index);
 
 	if ((scb = host->active) != NULL) {
 		initio_unlink_busy_scb(host, scb);
diff --git a/drivers/scsi/ncr53c8xx.c b/drivers/scsi/ncr53c8xx.c
index 5b93ed8..347fb49 100644
--- a/drivers/scsi/ncr53c8xx.c
+++ b/drivers/scsi/ncr53c8xx.c
@@ -772,7 +772,8 @@ static int __init sym53c8xx__setup(char *str)
 			break;
 #endif
 		default:
-			printk("sym53c8xx_setup: unexpected boot option '%.*s' ignored\n", (int)(pc-cur+1), cur);
+			printk("%s: unexpected boot option '%.*s' ignored\n",
+			       __func__, (int)(pc-cur+1), cur);
 			break;
 		}
 
diff --git a/drivers/scsi/ppa.c b/drivers/scsi/ppa.c
index 1db8b26..4c1f08e 100644
--- a/drivers/scsi/ppa.c
+++ b/drivers/scsi/ppa.c
@@ -365,7 +365,7 @@ static int ppa_in(ppa_struct *dev, char *buffer, int len)
 		break;
 
 	default:
-		printk(KERN_ERR "PPA: bug in ppa_ins()\n");
+		printk(KERN_ERR "PPA: bug in %s()\n", __func__);
 		r = 0;
 		break;
 	}
diff --git a/drivers/scsi/atp870u.c b/drivers/scsi/atp870u.c
index a795d81..ebb4556 100644
--- a/drivers/scsi/atp870u.c
+++ b/drivers/scsi/atp870u.c
@@ -3016,12 +3016,12 @@ flash_ok_885:
 			goto scsi_add_fail;
 		scsi_scan_host(shpnt);
 #ifdef ED_DBGP			
-		printk("atp870u_prob : exit\n");
+		printk("%s : exit\n", __func__);
 #endif		
 		return 0;
 
 scsi_add_fail:
-	printk("atp870u_prob:scsi_add_fail\n");
+	printk("%s:scsi_add_fail\n", __func__);
 	if(ent->device=ATP885_DEVID) {
 		release_region(base_io, 0xff);
 	} else if((ent->device=ATP880_DEVID1)||(ent->device=ATP880_DEVID2)) {
@@ -3030,13 +3030,13 @@ scsi_add_fail:
 		release_region(base_io, 0x40);
 	}
 request_io_fail:
-	printk("atp870u_prob:request_io_fail\n");
+	printk("%s:request_io_fail\n", __func__);
 	free_irq(pdev->irq, shpnt);
 free_tables:
-	printk("atp870u_prob:free_table\n");
+	printk("%s:free_table\n", __func__);
 	atp870u_free_tables(shpnt);
 unregister:
-	printk("atp870u_prob:unregister\n");
+	printk("%s:unregister\n", __func__);
 	scsi_host_put(shpnt);
 	return -1;		
 err_eio:
diff --git a/drivers/scsi/imm.c b/drivers/scsi/imm.c
index 89a8266..1f2a668 100644
--- a/drivers/scsi/imm.c
+++ b/drivers/scsi/imm.c
@@ -439,7 +439,7 @@ static int imm_in(imm_struct *dev, char *buffer, int len)
 		break;
 
 	default:
-		printk("IMM: bug in imm_ins()\n");
+		printk("IMM: bug in %s()\n", __func__);
 		r = 0;
 		break;
 	}


  parent reply	other threads:[~2014-12-07 19:30 UTC|newest]

Thread overview: 144+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-07 19:20 [PATCH 0/20] fix misspelling of current function in string Julia Lawall
2014-12-07 19:20 ` Julia Lawall
2014-12-07 19:20 ` Julia Lawall
2014-12-07 19:20 ` Julia Lawall
2014-12-07 19:20 ` [PATCH 1/20] mtd: s3c2410: " Julia Lawall
2014-12-07 19:20   ` Julia Lawall
2014-12-07 19:20   ` Julia Lawall
2014-12-07 19:20   ` Julia Lawall
2014-12-07 22:48   ` Richard Weinberger
2014-12-07 22:48     ` Richard Weinberger
2014-12-07 22:48     ` Richard Weinberger
2014-12-07 22:48     ` Richard Weinberger
2014-12-07 22:48     ` Richard Weinberger
2014-12-08  7:11     ` Julia Lawall
2014-12-08  7:11       ` Julia Lawall
2014-12-08  7:11       ` Julia Lawall
2014-12-08  7:11       ` Julia Lawall
2014-12-08  7:11       ` Julia Lawall
2014-12-08  9:16       ` Richard Weinberger
2014-12-08  9:16         ` Richard Weinberger
2014-12-08  9:16         ` Richard Weinberger
2014-12-08  9:16         ` Richard Weinberger
2014-12-08  9:16         ` Richard Weinberger
2015-02-06 11:28         ` Brian Norris
2015-02-06 11:28           ` Brian Norris
2015-02-06 11:28           ` Brian Norris
2015-02-06 11:28           ` Brian Norris
2015-02-06 11:28           ` Brian Norris
2014-12-07 19:20 ` [PATCH 2/20] PCI: keystone: " Julia Lawall
2014-12-07 19:20   ` Julia Lawall
2014-12-07 19:20   ` Julia Lawall
2014-12-08 15:14   ` Murali Karicheri
2014-12-08 15:14     ` Murali Karicheri
2014-12-08 15:14     ` Murali Karicheri
2015-01-09 18:31   ` Bjorn Helgaas
2015-01-09 18:31     ` Bjorn Helgaas
2015-01-09 18:31     ` Bjorn Helgaas
2014-12-07 19:20 ` [PATCH 3/20] PCI: " Julia Lawall
2014-12-07 19:20   ` Julia Lawall
2014-12-07 20:41   ` Rasmus Villemoes
2014-12-07 20:41     ` Rasmus Villemoes
2014-12-07 20:43     ` Julia Lawall
2014-12-07 20:43       ` Julia Lawall
2014-12-07 19:20 ` [PATCH 4/20] dmfe: " Julia Lawall
2014-12-07 19:20   ` Julia Lawall
2014-12-07 20:34   ` Grant Grundler
2014-12-07 20:34     ` Grant Grundler
2014-12-09 21:14   ` David Miller
2014-12-09 21:14     ` David Miller
2014-12-07 19:20 ` [PATCH 5/20] isdn: " Julia Lawall
2014-12-07 19:20   ` Julia Lawall
2014-12-09 21:14   ` David Miller
2014-12-09 21:14     ` David Miller
2014-12-07 19:20 ` [PATCH 6/20] TTY: " Julia Lawall
2014-12-07 19:20   ` Julia Lawall
2014-12-08  8:49   ` Jiri Slaby
2014-12-08  8:49     ` Jiri Slaby
2014-12-08  9:18     ` Joe Perches
2014-12-08  9:18       ` Joe Perches
2014-12-08  9:50       ` Jiri Slaby
2014-12-08  9:50         ` Jiri Slaby
2014-12-07 19:20 ` [PATCH 7/20] drm/i915: " Julia Lawall
2014-12-07 19:20   ` Julia Lawall
2014-12-08 10:24   ` Jani Nikula
2014-12-08 10:24     ` Jani Nikula
2014-12-08 14:15     ` Daniel Vetter
2014-12-08 14:15       ` Daniel Vetter
2014-12-08 14:15       ` Daniel Vetter
2014-12-07 19:20 ` [PATCH 8/20] USB: isp1760: " Julia Lawall
2014-12-07 19:20   ` Julia Lawall
2014-12-07 20:41   ` Jeremiah Mahler
2014-12-07 20:41     ` Jeremiah Mahler
2014-12-07 20:45     ` Julia Lawall
2014-12-07 20:45       ` Julia Lawall
2014-12-07 20:48       ` Jeremiah Mahler
2014-12-07 19:20 ` Julia Lawall [this message]
2014-12-07 19:20   ` [PATCH 9/20] drivers/scsi: " Julia Lawall
2014-12-07 19:20 ` [PATCH 10/20] uli526x: " Julia Lawall
2014-12-07 19:20   ` Julia Lawall
2014-12-07 20:48   ` Grant Grundler
2014-12-07 20:48     ` Grant Grundler
2014-12-07 20:59     ` [PATCH 10/20 v2] " Julia Lawall
2014-12-07 20:59       ` Julia Lawall
2014-12-09 21:14   ` [PATCH 10/20] " David Miller
2014-12-09 21:14     ` David Miller
2014-12-07 19:20 ` [PATCH 11/20] vme: " Julia Lawall
2014-12-07 19:20   ` Julia Lawall
2014-12-07 19:20 ` [PATCH 12/20] hp100: " Julia Lawall
2014-12-07 19:20   ` Julia Lawall
2014-12-07 20:44   ` Jeremiah Mahler
2014-12-07 20:44     ` Jeremiah Mahler
2014-12-09 21:13   ` David Miller
2014-12-09 21:13     ` David Miller
2014-12-09 21:14   ` David Miller
2014-12-09 21:14     ` David Miller
2014-12-07 19:20 ` [PATCH 13/20] zd1211rw: " Julia Lawall
2014-12-07 19:20   ` Julia Lawall
2014-12-07 19:20 ` [PATCH 14/20] chelsio: " Julia Lawall
2014-12-07 19:20   ` Julia Lawall
2014-12-09 21:13   ` David Miller
2014-12-09 21:13     ` David Miller
2014-12-09 21:14   ` David Miller
2014-12-09 21:14     ` David Miller
2014-12-07 19:20 ` [PATCH 15/20] hostap_cs: " Julia Lawall
2014-12-07 19:20   ` Julia Lawall
2014-12-07 19:20 ` [PATCH 16/20] rtlwifi: rtl8821ae: " Julia Lawall
2014-12-07 19:20   ` Julia Lawall
2014-12-07 19:20   ` Julia Lawall
2014-12-07 19:20 ` [PATCH 17/20] drm/i2c: tda998x: " Julia Lawall
2014-12-07 19:20   ` Julia Lawall
2014-12-07 19:21 ` [PATCH 18/20] usb: gadget: " Julia Lawall
2014-12-07 19:21   ` Julia Lawall
2014-12-07 19:21 ` [PATCH 19/20] TTY: " Julia Lawall
2014-12-07 19:21   ` Julia Lawall
2014-12-07 20:54   ` Jeremiah Mahler
2014-12-07 20:54     ` Jeremiah Mahler
2014-12-07 21:05     ` Julia Lawall
2014-12-07 21:05       ` Julia Lawall
2014-12-07 19:21 ` [PATCH 20/20] drm/radeon: " Julia Lawall
2014-12-07 19:21   ` Julia Lawall
2014-12-08 15:44   ` Alex Deucher
2014-12-08 15:44     ` Alex Deucher
2014-12-08 15:44     ` Alex Deucher
2014-12-08 16:17     ` Julia Lawall
2014-12-08 16:17       ` Julia Lawall
2014-12-07 23:44 ` [PATCH 0/20] " Julian Calaby
2014-12-07 23:44   ` Julian Calaby
2014-12-07 23:44   ` Julian Calaby
2014-12-07 23:44   ` Julian Calaby
2014-12-08  6:43   ` Julia Lawall
2014-12-08  6:43     ` Julia Lawall
2014-12-08  6:43     ` Julia Lawall
2014-12-08  6:43     ` Julia Lawall
2014-12-08  6:43     ` Julia Lawall
2014-12-10  2:56     ` Julian Calaby
2014-12-10  2:56       ` Julian Calaby
2014-12-10  2:56       ` Julian Calaby
2014-12-10  2:56       ` Julian Calaby
2014-12-10  2:56       ` Julian Calaby
2014-12-08  3:55 ` Joe Perches
2014-12-08  3:55   ` Joe Perches
2014-12-08  3:55   ` Joe Perches
2014-12-08  3:55   ` Joe Perches
2014-12-08  3:55   ` Joe Perches

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1417980062-25151-10-git-send-email-Julia.Lawall@lip6.fr \
    --to=julia.lawall@lip6.fr \
    --cc=JBottomley@parallels.com \
    --cc=joe@perches.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=linux@rasmusvillemoes.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.