diff options
author | Fuqian Huang <huangfq.daxian@gmail.com> | 2019-04-21 13:48:06 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-21 19:37:26 +0200 |
commit | 966cddef20a7a43dc07de4b59997f384b4fd103a (patch) | |
tree | 4294cc2b84644667921615b04056c8fc10fd7cf4 /net/ax25/af_ax25.c | |
parent | atm: iphase: fix misuse of %x (diff) | |
download | linux-966cddef20a7a43dc07de4b59997f384b4fd103a.tar.xz linux-966cddef20a7a43dc07de4b59997f384b4fd103a.zip |
net: ax25: fix misuse of %x
Pointers should be printed with %p or %px rather than
cast to long type and printed with %8.8lx.
Change %8.8lx to %p to print the pointer.
Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ax25/af_ax25.c')
-rw-r--r-- | net/ax25/af_ax25.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ax25/af_ax25.c b/net/ax25/af_ax25.c index 449e7b7190c1..012c0b6fc4f6 100644 --- a/net/ax25/af_ax25.c +++ b/net/ax25/af_ax25.c @@ -1880,8 +1880,8 @@ static int ax25_info_show(struct seq_file *seq, void *v) * magic dev src_addr dest_addr,digi1,digi2,.. st vs vr va t1 t1 t2 t2 t3 t3 idle idle n2 n2 rtt window paclen Snd-Q Rcv-Q inode */ - seq_printf(seq, "%8.8lx %s %s%s ", - (long) ax25, + seq_printf(seq, "%p %s %s%s ", + ax25, ax25->ax25_dev == NULL? "???" : ax25->ax25_dev->dev->name, ax2asc(buf, &ax25->source_addr), ax25->iamdigi? "*":""); |