Commit 0fa4122b authored by Fuqian Huang's avatar Fuqian Huang Committed by David S. Miller

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: default avatarFuqian Huang <huangfq.daxian@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6f9fd97e
...@@ -2041,9 +2041,9 @@ setup_hw(struct hfc_pci *hc) ...@@ -2041,9 +2041,9 @@ setup_hw(struct hfc_pci *hc)
} }
printk(KERN_INFO printk(KERN_INFO
"HFC-PCI: defined at mem %#lx fifo %#lx(%#lx) IRQ %d HZ %d\n", "HFC-PCI: defined at mem %#lx fifo %p(%pad) IRQ %d HZ %d\n",
(u_long) hc->hw.pci_io, (u_long) hc->hw.fifos, (u_long) hc->hw.pci_io, hc->hw.fifos,
(u_long) hc->hw.dmahandle, hc->irq, HZ); &hc->hw.dmahandle, hc->irq, HZ);
/* enable memory mapped ports, disable busmaster */ /* enable memory mapped ports, disable busmaster */
pci_write_config_word(hc->pdev, PCI_COMMAND, PCI_ENA_MEMIO); pci_write_config_word(hc->pdev, PCI_COMMAND, PCI_ENA_MEMIO);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment