diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-11-04 14:31:26 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-04 15:09:52 -0500 |
commit | c9f503b00622525bb9a549ff38c4bb20b4287b84 (patch) | |
tree | 66f030c83a43a24aa7624de20c51764ee6ebf56a | |
parent | b92022f3e507d4d8415b34d6ac81adf2d45c2071 (diff) |
ipv4: use seq_puts instead of seq_printf where possible
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv4/proc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c index 8e3eb39f84e7..f0d4eb8b99b9 100644 --- a/net/ipv4/proc.c +++ b/net/ipv4/proc.c | |||
@@ -296,12 +296,12 @@ static void icmpmsg_put_line(struct seq_file *seq, unsigned long *vals, | |||
296 | int j; | 296 | int j; |
297 | 297 | ||
298 | if (count) { | 298 | if (count) { |
299 | seq_printf(seq, "\nIcmpMsg:"); | 299 | seq_puts(seq, "\nIcmpMsg:"); |
300 | for (j = 0; j < count; ++j) | 300 | for (j = 0; j < count; ++j) |
301 | seq_printf(seq, " %sType%u", | 301 | seq_printf(seq, " %sType%u", |
302 | type[j] & 0x100 ? "Out" : "In", | 302 | type[j] & 0x100 ? "Out" : "In", |
303 | type[j] & 0xff); | 303 | type[j] & 0xff); |
304 | seq_printf(seq, "\nIcmpMsg:"); | 304 | seq_puts(seq, "\nIcmpMsg:"); |
305 | for (j = 0; j < count; ++j) | 305 | for (j = 0; j < count; ++j) |
306 | seq_printf(seq, " %lu", vals[j]); | 306 | seq_printf(seq, " %lu", vals[j]); |
307 | } | 307 | } |
@@ -342,7 +342,7 @@ static void icmp_put(struct seq_file *seq) | |||
342 | seq_puts(seq, "\nIcmp: InMsgs InErrors InCsumErrors"); | 342 | seq_puts(seq, "\nIcmp: InMsgs InErrors InCsumErrors"); |
343 | for (i = 0; icmpmibmap[i].name != NULL; i++) | 343 | for (i = 0; icmpmibmap[i].name != NULL; i++) |
344 | seq_printf(seq, " In%s", icmpmibmap[i].name); | 344 | seq_printf(seq, " In%s", icmpmibmap[i].name); |
345 | seq_printf(seq, " OutMsgs OutErrors"); | 345 | seq_puts(seq, " OutMsgs OutErrors"); |
346 | for (i = 0; icmpmibmap[i].name != NULL; i++) | 346 | for (i = 0; icmpmibmap[i].name != NULL; i++) |
347 | seq_printf(seq, " Out%s", icmpmibmap[i].name); | 347 | seq_printf(seq, " Out%s", icmpmibmap[i].name); |
348 | seq_printf(seq, "\nIcmp: %lu %lu %lu", | 348 | seq_printf(seq, "\nIcmp: %lu %lu %lu", |