isdn:mISDN: fix misuse of %x in hfcpci.c
authorFuqian Huang <huangfq.daxian@gmail.com>
Tue, 23 Apr 2019 02:56:23 +0000 (10:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Apr 2019 01:33:30 +0000 (18:33 -0700)
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>
drivers/isdn/hardware/mISDN/hfcpci.c

index 362aa5450a5ec6764f71fcf9c0860fa54a066464..29c22d74afe052eea838d8d580977eee1fae578e 100644 (file)
@@ -2041,9 +2041,9 @@ setup_hw(struct hfc_pci *hc)
        }
 
        printk(KERN_INFO
-              "HFC-PCI: defined at mem %#lx fifo %#lx(%#lx) IRQ %d HZ %d\n",
-              (u_long) hc->hw.pci_io, (u_long) hc->hw.fifos,
-              (u_long) hc->hw.dmahandle, hc->irq, HZ);
+              "HFC-PCI: defined at mem %#lx fifo %p(%pad) IRQ %d HZ %d\n",
+              (u_long) hc->hw.pci_io, hc->hw.fifos,
+              &hc->hw.dmahandle, hc->irq, HZ);
 
        /* enable memory mapped ports, disable busmaster */
        pci_write_config_word(hc->pdev, PCI_COMMAND, PCI_ENA_MEMIO);