Skip to content

Commit

Permalink
can: proc: fix rcvlist_* header alignment on 64-bit system
Browse files Browse the repository at this point in the history
Before this fix, the function and userdata columns weren't aligned:
  device   can_id   can_mask  function  userdata   matches  ident
   vcan0  92345678  9fffffff  0000000000000000  0000000000000000         0  raw
   vcan0     123    00000123  0000000000000000  0000000000000000         0  raw

After the fix they are:
  device   can_id   can_mask      function          userdata       matches  ident
   vcan0  92345678  9fffffff  0000000000000000  0000000000000000         0  raw
   vcan0     123    00000123  0000000000000000  0000000000000000         0  raw

Link: Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Erik Flodin <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
  • Loading branch information
erijo authored and marckleinebudde committed Apr 25, 2021
1 parent 924e464 commit e6b031d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions net/can/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,10 @@ static void can_print_recv_banner(struct seq_file *m)
* can1. 00000000 00000000 00000000
* ....... 0 tp20
*/
seq_puts(m, " device can_id can_mask function"
" userdata matches ident\n");
if (IS_ENABLED(CONFIG_64BIT))
seq_puts(m, " device can_id can_mask function userdata matches ident\n");
else
seq_puts(m, " device can_id can_mask function userdata matches ident\n");
}

static int can_stats_proc_show(struct seq_file *m, void *v)
Expand Down

0 comments on commit e6b031d

Please sign in to comment.