]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ipv4: use seq_puts instead of seq_printf where possible
authorFabian Frederick <fabf@skynet.be>
Tue, 4 Nov 2014 19:31:26 +0000 (20:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Nov 2014 20:09:52 +0000 (15:09 -0500)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/proc.c

index 8e3eb39f84e72c9e0f487bcfc8950b544b882a11..f0d4eb8b99b9fa3afeb1d4e949a215c33fbeeecb 100644 (file)
@@ -296,12 +296,12 @@ static void icmpmsg_put_line(struct seq_file *seq, unsigned long *vals,
        int j;
 
        if (count) {
-               seq_printf(seq, "\nIcmpMsg:");
+               seq_puts(seq, "\nIcmpMsg:");
                for (j = 0; j < count; ++j)
                        seq_printf(seq, " %sType%u",
                                type[j] & 0x100 ? "Out" : "In",
                                type[j] & 0xff);
-               seq_printf(seq, "\nIcmpMsg:");
+               seq_puts(seq, "\nIcmpMsg:");
                for (j = 0; j < count; ++j)
                        seq_printf(seq, " %lu", vals[j]);
        }
@@ -342,7 +342,7 @@ static void icmp_put(struct seq_file *seq)
        seq_puts(seq, "\nIcmp: InMsgs InErrors InCsumErrors");
        for (i = 0; icmpmibmap[i].name != NULL; i++)
                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++)
                seq_printf(seq, " Out%s", icmpmibmap[i].name);
        seq_printf(seq, "\nIcmp: %lu %lu %lu",