Skip to content

Commit ae552ac

Browse files
yuzibodavem330
authored andcommitted
net/netlink: make sure the headers line up actual value output
Making sure the headers line up properly with the actual value output of the command `cat /proc/net/netlink` Before the patch: <sk Eth Pid Groups Rmem Wmem Dump Locks Drops Inode <ffff8cd2c2f7b000 0 909 00000550 0 0 0 2 0 18946 After the patch: >sk Eth Pid Groups Rmem Wmem Dump Locks Drops Inode >0000000033203952 0 897 00000113 0 0 0 2 0 14906 Signed-off-by: Bo YU <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d89a2ad commit ae552ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

net/netlink/af_netlink.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2606,13 +2606,13 @@ static int netlink_seq_show(struct seq_file *seq, void *v)
26062606
{
26072607
if (v == SEQ_START_TOKEN) {
26082608
seq_puts(seq,
2609-
"sk Eth Pid Groups "
2610-
"Rmem Wmem Dump Locks Drops Inode\n");
2609+
"sk Eth Pid Groups "
2610+
"Rmem Wmem Dump Locks Drops Inode\n");
26112611
} else {
26122612
struct sock *s = v;
26132613
struct netlink_sock *nlk = nlk_sk(s);
26142614

2615-
seq_printf(seq, "%pK %-3d %-6u %08x %-8d %-8d %d %-8d %-8d %-8lu\n",
2615+
seq_printf(seq, "%pK %-3d %-10u %08x %-8d %-8d %-5d %-8d %-8d %-8lu\n",
26162616
s,
26172617
s->sk_protocol,
26182618
nlk->portid,

0 commit comments

Comments
 (0)