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>
This commit is contained in:

committed by
James Bottomley

parent
ee7c7277d9
commit
91c40f24fa
@@ -3101,9 +3101,9 @@ static const char *atp870u_info(struct Scsi_Host *notused)
|
||||
|
||||
static int atp870u_show_info(struct seq_file *m, struct Scsi_Host *HBAptr)
|
||||
{
|
||||
seq_printf(m, "ACARD AEC-671X Driver Version: 2.6+ac\n");
|
||||
seq_printf(m, "\n");
|
||||
seq_printf(m, "Adapter Configuration:\n");
|
||||
seq_puts(m, "ACARD AEC-671X Driver Version: 2.6+ac\n");
|
||||
seq_puts(m, "\n");
|
||||
seq_puts(m, "Adapter Configuration:\n");
|
||||
seq_printf(m, " Base IO: %#.4lx\n", HBAptr->io_port);
|
||||
seq_printf(m, " IRQ: %d\n", HBAptr->irq);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user