Commit 590a18e1 authored by Markus Elfring's avatar Markus Elfring Committed by Bjorn Helgaas

PCI: Use seq_puts() instead of seq_printf() in show_device()

The driver name in /proc/bus/pci/devices can be printed without a printf
format specification, so use seq_puts() instead of seq_printf().

This issue was detected by using the Coccinelle software.

Link: https://lore.kernel.org/r/a6b110cb-0d0e-5dc3-9ca1-9041609cf74c@web.deSigned-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
[bhelgaas: commit log]
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 6d2e369f
...@@ -377,7 +377,7 @@ static int show_device(struct seq_file *m, void *v) ...@@ -377,7 +377,7 @@ static int show_device(struct seq_file *m, void *v)
} }
seq_putc(m, '\t'); seq_putc(m, '\t');
if (drv) if (drv)
seq_printf(m, "%s", drv->name); seq_puts(m, drv->name);
seq_putc(m, '\n'); seq_putc(m, '\n');
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment