Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

isdn:mISDN: fix misuse of %x in hfcpci.c

Pointers should be printed with %p or %px rather than
cast to (u_long) and printed with %lx.
Change %lx to %p to print the pointer.
Change %lx to %pad to print the dma_addr_t.

Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Fuqian Huang and committed by
David S. Miller
0fa4122b 6f9fd97e

+3 -3
+3 -3
drivers/isdn/hardware/mISDN/hfcpci.c
··· 2041 2041 } 2042 2042 2043 2043 printk(KERN_INFO 2044 - "HFC-PCI: defined at mem %#lx fifo %#lx(%#lx) IRQ %d HZ %d\n", 2045 - (u_long) hc->hw.pci_io, (u_long) hc->hw.fifos, 2046 - (u_long) hc->hw.dmahandle, hc->irq, HZ); 2044 + "HFC-PCI: defined at mem %#lx fifo %p(%pad) IRQ %d HZ %d\n", 2045 + (u_long) hc->hw.pci_io, hc->hw.fifos, 2046 + &hc->hw.dmahandle, hc->irq, HZ); 2047 2047 2048 2048 /* enable memory mapped ports, disable busmaster */ 2049 2049 pci_write_config_word(hc->pdev, PCI_COMMAND, PCI_ENA_MEMIO);