summaryrefslogtreecommitdiffstats
path: root/net/can/proc.c
diff options
context:
space:
mode:
authorOliver Hartkopp <socketcan@hartkopp.net>2011-05-26 06:57:53 +0200
committerDavid S. Miller <davem@davemloft.net>2011-05-26 20:23:35 +0200
commit12e6c419b48c4d1803918e5d952ebee07bae7465 (patch)
tree71da9cb1b692433460c380a9eb049e9f8821d359 /net/can/proc.c
parentnet: fix ETHTOOL_SFEATURES compatibility with old ethtool_ops.set_flags (diff)
downloadlinux-12e6c419b48c4d1803918e5d952ebee07bae7465.tar.xz
linux-12e6c419b48c4d1803918e5d952ebee07bae7465.zip
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>
Diffstat (limited to 'net/can/proc.c')
-rw-r--r--net/can/proc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/net/can/proc.c b/net/can/proc.c
index f4265cc9c3fb..0016f7339699 100644
--- a/net/can/proc.c
+++ b/net/can/proc.c
@@ -204,12 +204,11 @@ static void can_print_rcvlist(struct seq_file *m, struct hlist_head *rx_list,
hlist_for_each_entry_rcu(r, n, rx_list, list) {
char *fmt = (r->can_id & CAN_EFF_FLAG)?
- " %-5s %08X %08x %08x %08x %8ld %s\n" :
- " %-5s %03X %08x %08lx %08lx %8ld %s\n";
+ " %-5s %08x %08x %pK %pK %8ld %s\n" :
+ " %-5s %03x %08x %pK %pK %8ld %s\n";
seq_printf(m, fmt, DNAME(dev), r->can_id, r->mask,
- (unsigned long)r->func, (unsigned long)r->data,
- r->matches, r->ident);
+ r->func, r->data, r->matches, r->ident);
}
}