diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2014-12-02 18:10:52 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2015-02-02 12:57:45 -0500 |
commit | 91c40f24faadd977ee9209fee6a760e72a50d19c (patch) | |
tree | 970b7a1672e51376b341387609b162a2503ca5c8 /drivers/scsi/atp870u.c | |
parent | ee7c7277d9444612c0341588abfb958dffbc5b34 (diff) |
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/atp870u.c')
-rw-r--r-- | drivers/scsi/atp870u.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/atp870u.c b/drivers/scsi/atp870u.c index a795d81ef875..0b0246716646 100644 --- a/drivers/scsi/atp870u.c +++ b/drivers/scsi/atp870u.c | |||
@@ -3101,9 +3101,9 @@ static const char *atp870u_info(struct Scsi_Host *notused) | |||
3101 | 3101 | ||
3102 | static int atp870u_show_info(struct seq_file *m, struct Scsi_Host *HBAptr) | 3102 | static int atp870u_show_info(struct seq_file *m, struct Scsi_Host *HBAptr) |
3103 | { | 3103 | { |
3104 | seq_printf(m, "ACARD AEC-671X Driver Version: 2.6+ac\n"); | 3104 | seq_puts(m, "ACARD AEC-671X Driver Version: 2.6+ac\n"); |
3105 | seq_printf(m, "\n"); | 3105 | seq_puts(m, "\n"); |
3106 | seq_printf(m, "Adapter Configuration:\n"); | 3106 | seq_puts(m, "Adapter Configuration:\n"); |
3107 | seq_printf(m, " Base IO: %#.4lx\n", HBAptr->io_port); | 3107 | seq_printf(m, " Base IO: %#.4lx\n", HBAptr->io_port); |
3108 | seq_printf(m, " IRQ: %d\n", HBAptr->irq); | 3108 | seq_printf(m, " IRQ: %d\n", HBAptr->irq); |
3109 | return 0; | 3109 | return 0; |