summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/wd7000.c
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2014-12-03 00:10:52 +0100
committerJames Bottomley <JBottomley@Parallels.com>2015-02-02 18:57:45 +0100
commit91c40f24faadd977ee9209fee6a760e72a50d19c (patch)
tree970b7a1672e51376b341387609b162a2503ca5c8 /drivers/scsi/wd7000.c
parentaha152x: replace seq_printf with seq_puts (diff)
downloadlinux-91c40f24faadd977ee9209fee6a760e72a50d19c.tar.xz
linux-91c40f24faadd977ee9209fee6a760e72a50d19c.zip
scsi: replace seq_printf with seq_puts
Using seq_printf to print a simple string is a lot more expensive than it needs to be, since seq_puts exists. Replace seq_printf with seq_puts when possible. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Reviewed-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/wd7000.c')
-rw-r--r--drivers/scsi/wd7000.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/scsi/wd7000.c b/drivers/scsi/wd7000.c
index 2d7c62f3a7cc..0c0f17b9a3eb 100644
--- a/drivers/scsi/wd7000.c
+++ b/drivers/scsi/wd7000.c
@@ -1330,9 +1330,9 @@ static int wd7000_show_info(struct seq_file *m, struct Scsi_Host *host)
icmbs = adapter->mb.icmb;
seq_printf(m, "\nControl port value: 0x%x\n", adapter->control);
- seq_printf(m, "Incoming mailbox:\n");
+ seq_puts(m, "Incoming mailbox:\n");
seq_printf(m, " size: %d\n", ICMB_CNT);
- seq_printf(m, " queued messages: ");
+ seq_puts(m, " queued messages: ");
for (i = count = 0; i < ICMB_CNT; i++)
if (icmbs[i].status) {
@@ -1340,12 +1340,12 @@ static int wd7000_show_info(struct seq_file *m, struct Scsi_Host *host)
seq_printf(m, "0x%x ", i);
}
- seq_printf(m, count ? "\n" : "none\n");
+ seq_puts(m, count ? "\n" : "none\n");
- seq_printf(m, "Outgoing mailbox:\n");
+ seq_puts(m, "Outgoing mailbox:\n");
seq_printf(m, " size: %d\n", OGMB_CNT);
seq_printf(m, " next message: 0x%x\n", adapter->next_ogmb);
- seq_printf(m, " queued messages: ");
+ seq_puts(m, " queued messages: ");
for (i = count = 0; i < OGMB_CNT; i++)
if (ogmbs[i].status) {
@@ -1353,7 +1353,7 @@ static int wd7000_show_info(struct seq_file *m, struct Scsi_Host *host)
seq_printf(m, "0x%x ", i);
}
- seq_printf(m, count ? "\n" : "none\n");
+ seq_puts(m, count ? "\n" : "none\n");
#endif
spin_unlock_irqrestore(host->host_lock, flags);