mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 16:15:11 +00:00
isdn: hisax: Fix misuse of %x in config.c
Pointers should be printed with %p or %px rather than cast to (u_long) type and printed with %lX. As the function seems to be for debug purpose. Change %lX to %px to print the pointer value. Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6b18bdfdba
commit
6f9fd97e3a
1 changed files with 3 additions and 3 deletions
|
@ -1294,9 +1294,9 @@ void HiSax_reportcard(int cardnr, int sel)
|
||||||
printk(KERN_DEBUG "HiSax: reportcard No %d\n", cardnr + 1);
|
printk(KERN_DEBUG "HiSax: reportcard No %d\n", cardnr + 1);
|
||||||
printk(KERN_DEBUG "HiSax: Type %s\n", CardType[cs->typ]);
|
printk(KERN_DEBUG "HiSax: Type %s\n", CardType[cs->typ]);
|
||||||
printk(KERN_DEBUG "HiSax: debuglevel %x\n", cs->debug);
|
printk(KERN_DEBUG "HiSax: debuglevel %x\n", cs->debug);
|
||||||
printk(KERN_DEBUG "HiSax: HiSax_reportcard address 0x%lX\n",
|
printk(KERN_DEBUG "HiSax: HiSax_reportcard address 0x%px\n",
|
||||||
(ulong) & HiSax_reportcard);
|
HiSax_reportcard);
|
||||||
printk(KERN_DEBUG "HiSax: cs 0x%lX\n", (ulong) cs);
|
printk(KERN_DEBUG "HiSax: cs 0x%px\n", cs);
|
||||||
printk(KERN_DEBUG "HiSax: HW_Flags %lx bc0 flg %lx bc1 flg %lx\n",
|
printk(KERN_DEBUG "HiSax: HW_Flags %lx bc0 flg %lx bc1 flg %lx\n",
|
||||||
cs->HW_Flags, cs->bcs[0].Flag, cs->bcs[1].Flag);
|
cs->HW_Flags, cs->bcs[0].Flag, cs->bcs[1].Flag);
|
||||||
printk(KERN_DEBUG "HiSax: bcs 0 mode %d ch%d\n",
|
printk(KERN_DEBUG "HiSax: bcs 0 mode %d ch%d\n",
|
||||||
|
|
Loading…
Reference in a new issue