Commit b1dcc3d1 authored by Cal Peake's avatar Cal Peake Committed by Linus Torvalds

[PATCH] fix /proc/net/netstat output

net/ipv4/proc.c was updated to use a new mechanism for outputting
/proc/net/snmp and /proc/net/netstat.

However, a superfluous '\n' snuck in, breaking `netstat -s`
parent 26a9b9cf
...@@ -330,7 +330,7 @@ static int netstat_seq_show(struct seq_file *seq, void *v) ...@@ -330,7 +330,7 @@ static int netstat_seq_show(struct seq_file *seq, void *v)
{ {
int i; int i;
seq_puts(seq, "\nTcpExt:"); seq_puts(seq, "TcpExt:");
for (i = 0; snmp4_net_list[i].name != NULL; i++) for (i = 0; snmp4_net_list[i].name != NULL; i++)
seq_printf(seq, " %s", snmp4_net_list[i].name); seq_printf(seq, " %s", snmp4_net_list[i].name);
......
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