summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_dfs.c
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2014-12-03 00:10:54 +0100
committerJames Bottomley <JBottomley@Parallels.com>2015-02-02 09:57:46 -0800
commitf50332ff2574130903356e800913c1a73cc6c1dc (patch)
tree89f06badf4e0f42bc26f150d89101efde0dea82e /drivers/scsi/qla2xxx/qla_dfs.c
parent3d30079c3a9000504cf71e4e8dd94619070dc4f3 (diff)
downloadblackbird-obmc-linux-f50332ff2574130903356e800913c1a73cc6c1dc.tar.gz
blackbird-obmc-linux-f50332ff2574130903356e800913c1a73cc6c1dc.zip
scsi: print single-character strings with seq_putc
Using seq_putc to print a single character saves at least a strlen() call and a memory access, and may also give a small .text reduction. 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/qla2xxx/qla_dfs.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_dfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_dfs.c b/drivers/scsi/qla2xxx/qla_dfs.c
index c837ba3156f7..15cf074ffa3c 100644
--- a/drivers/scsi/qla2xxx/qla_dfs.c
+++ b/drivers/scsi/qla2xxx/qla_dfs.c
@@ -38,7 +38,7 @@ qla2x00_dfs_fce_show(struct seq_file *s, void *unused)
seq_printf(s, "\n%llx: ",
(unsigned long long)((cnt * 4) + fce_start));
else
- seq_puts(s, " ");
+ seq_putc(s, ' ');
seq_printf(s, "%08x", *fce++);
}
OpenPOWER on IntegriCloud