Skip to content

Commit 12e6c41

Browse files
hartkoppdavem330
authored andcommitted
can: convert to %pK for kptr_restrict support
As these pointers have been printed without using %p they were missed in the big network kptr_restrict conversion patch %p -> %pK from Dan Rosenberg. Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent fd0daf9 commit 12e6c41

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

net/can/proc.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,11 @@ static void can_print_rcvlist(struct seq_file *m, struct hlist_head *rx_list,
204204

205205
hlist_for_each_entry_rcu(r, n, rx_list, list) {
206206
char *fmt = (r->can_id & CAN_EFF_FLAG)?
207-
" %-5s %08X %08x %08x %08x %8ld %s\n" :
208-
" %-5s %03X %08x %08lx %08lx %8ld %s\n";
207+
" %-5s %08x %08x %pK %pK %8ld %s\n" :
208+
" %-5s %03x %08x %pK %pK %8ld %s\n";
209209

210210
seq_printf(m, fmt, DNAME(dev), r->can_id, r->mask,
211-
(unsigned long)r->func, (unsigned long)r->data,
212-
r->matches, r->ident);
211+
r->func, r->data, r->matches, r->ident);
213212
}
214213
}
215214

0 commit comments

Comments
 (0)