diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2008-07-23 23:54:35 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-07-28 10:58:17 -0700 |
commit | 2377f8ce84aa89678c51cb764337d2f2e1133835 (patch) | |
tree | f96cea02d74f2924aa172bca3b435d62963b89ca | |
parent | c7e0c40126de5c8de8d3346728b026d6a94c5021 (diff) | |
download | lwn-2377f8ce84aa89678c51cb764337d2f2e1133835.tar.gz lwn-2377f8ce84aa89678c51cb764337d2f2e1133835.zip |
raw: Restore /proc/net/raw correct behavior
[ Upstream commit 68be802cd5ad040fe8cfa33ce3031405df2d9117 ]
I just noticed "cat /proc/net/raw" was buggy, missing '\n' separators.
I believe this was introduced by commit 8cd850efa4948d57a2ed836911cfd1ab299e89c6
([RAW]: Cleanup IPv4 raw_seq_show.)
This trivial patch restores correct behavior, and applies to current
Linus tree (should also be applied to stable tree as well.)
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | net/ipv4/raw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c index a3002fe65b7f..37801ae7956e 100644 --- a/net/ipv4/raw.c +++ b/net/ipv4/raw.c @@ -936,7 +936,7 @@ static void raw_sock_seq_show(struct seq_file *seq, struct sock *sp, int i) srcp = inet->num; seq_printf(seq, "%4d: %08X:%04X %08X:%04X" - " %02X %08X:%08X %02X:%08lX %08X %5d %8d %lu %d %p %d", + " %02X %08X:%08X %02X:%08lX %08X %5d %8d %lu %d %p %d\n", i, src, srcp, dest, destp, sp->sk_state, atomic_read(&sp->sk_wmem_alloc), atomic_read(&sp->sk_rmem_alloc), |