Commit c9f503b0 authored by Fabian Frederick's avatar Fabian Frederick Committed by David S. Miller

ipv4: use seq_puts instead of seq_printf where possible

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b92022f3
...@@ -296,12 +296,12 @@ static void icmpmsg_put_line(struct seq_file *seq, unsigned long *vals, ...@@ -296,12 +296,12 @@ static void icmpmsg_put_line(struct seq_file *seq, unsigned long *vals,
int j; int j;
if (count) { if (count) {
seq_printf(seq, "\nIcmpMsg:"); seq_puts(seq, "\nIcmpMsg:");
for (j = 0; j < count; ++j) for (j = 0; j < count; ++j)
seq_printf(seq, " %sType%u", seq_printf(seq, " %sType%u",
type[j] & 0x100 ? "Out" : "In", type[j] & 0x100 ? "Out" : "In",
type[j] & 0xff); type[j] & 0xff);
seq_printf(seq, "\nIcmpMsg:"); seq_puts(seq, "\nIcmpMsg:");
for (j = 0; j < count; ++j) for (j = 0; j < count; ++j)
seq_printf(seq, " %lu", vals[j]); seq_printf(seq, " %lu", vals[j]);
} }
...@@ -342,7 +342,7 @@ static void icmp_put(struct seq_file *seq) ...@@ -342,7 +342,7 @@ static void icmp_put(struct seq_file *seq)
seq_puts(seq, "\nIcmp: InMsgs InErrors InCsumErrors"); seq_puts(seq, "\nIcmp: InMsgs InErrors InCsumErrors");
for (i = 0; icmpmibmap[i].name != NULL; i++) for (i = 0; icmpmibmap[i].name != NULL; i++)
seq_printf(seq, " In%s", icmpmibmap[i].name); seq_printf(seq, " In%s", icmpmibmap[i].name);
seq_printf(seq, " OutMsgs OutErrors"); seq_puts(seq, " OutMsgs OutErrors");
for (i = 0; icmpmibmap[i].name != NULL; i++) for (i = 0; icmpmibmap[i].name != NULL; i++)
seq_printf(seq, " Out%s", icmpmibmap[i].name); seq_printf(seq, " Out%s", icmpmibmap[i].name);
seq_printf(seq, "\nIcmp: %lu %lu %lu", seq_printf(seq, "\nIcmp: %lu %lu %lu",
......
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