diff options
author | Fuqian Huang <huangfq.daxian@gmail.com> | 2019-04-21 19:46:54 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-21 10:37:26 -0700 |
commit | 05453eadbf89c4f428ec0e6e962348f18e3a0caa (patch) | |
tree | 4ff9ba403e4bbf407ec60ce14e0fbcb5bb18ca5c /drivers/atm | |
parent | f9e0d65b1fe3659d299b76c82a4b44a7d71c41e4 (diff) | |
download | linux-05453eadbf89c4f428ec0e6e962348f18e3a0caa.tar.bz2 |
atm: iphase: fix misuse of %x
Pointers should be printed with %p or %px rather than
cast to long type and printed with %x.
Change %x to %p to print the pointers.
Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/atm')
-rw-r--r-- | drivers/atm/iphase.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/atm/iphase.c b/drivers/atm/iphase.c index 82532c299bb5..5278c57dce73 100644 --- a/drivers/atm/iphase.c +++ b/drivers/atm/iphase.c @@ -2826,8 +2826,8 @@ static int ia_ioctl(struct atm_dev *dev, unsigned int cmd, void __user *arg) case 0x6: { ia_cmds.status = 0; - printk("skb = 0x%lx\n", (long)skb_peek(&iadev->tx_backlog)); - printk("rtn_q: 0x%lx\n",(long)ia_deque_rtn_q(&iadev->tx_return_q)); + printk("skb = 0x%p\n", skb_peek(&iadev->tx_backlog)); + printk("rtn_q: 0x%p\n",ia_deque_rtn_q(&iadev->tx_return_q)); } break; case 0x8: |