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/arm | |
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/arm')
-rw-r--r-- | drivers/scsi/arm/fas216.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/arm/fas216.c b/drivers/scsi/arm/fas216.c index e64c3af7c1a0..decdc71b6b86 100644 --- a/drivers/scsi/arm/fas216.c +++ b/drivers/scsi/arm/fas216.c | |||
@@ -2990,7 +2990,7 @@ void fas216_print_devices(FAS216_Info *info, struct seq_file *m) | |||
2990 | struct fas216_device *dev; | 2990 | struct fas216_device *dev; |
2991 | struct scsi_device *scd; | 2991 | struct scsi_device *scd; |
2992 | 2992 | ||
2993 | seq_printf(m, "Device/Lun TaggedQ Parity Sync\n"); | 2993 | seq_puts(m, "Device/Lun TaggedQ Parity Sync\n"); |
2994 | 2994 | ||
2995 | shost_for_each_device(scd, info->host) { | 2995 | shost_for_each_device(scd, info->host) { |
2996 | dev = &info->device[scd->id]; | 2996 | dev = &info->device[scd->id]; |
@@ -3000,7 +3000,7 @@ void fas216_print_devices(FAS216_Info *info, struct seq_file *m) | |||
3000 | scd->simple_tags ? "en" : "dis", | 3000 | scd->simple_tags ? "en" : "dis", |
3001 | scd->current_tag); | 3001 | scd->current_tag); |
3002 | else | 3002 | else |
3003 | seq_printf(m, "unsupported "); | 3003 | seq_puts(m, "unsupported "); |
3004 | 3004 | ||
3005 | seq_printf(m, "%3sabled ", dev->parity_enabled ? "en" : "dis"); | 3005 | seq_printf(m, "%3sabled ", dev->parity_enabled ? "en" : "dis"); |
3006 | 3006 | ||
@@ -3008,7 +3008,7 @@ void fas216_print_devices(FAS216_Info *info, struct seq_file *m) | |||
3008 | seq_printf(m, "offset %d, %d ns\n", | 3008 | seq_printf(m, "offset %d, %d ns\n", |
3009 | dev->sof, dev->period * 4); | 3009 | dev->sof, dev->period * 4); |
3010 | else | 3010 | else |
3011 | seq_printf(m, "async\n"); | 3011 | seq_puts(m, "async\n"); |
3012 | } | 3012 | } |
3013 | } | 3013 | } |
3014 | 3014 | ||