Skip to content

Commit 6e85d7a

Browse files
hdellerdavem330
authored andcommitted
liquidio: Use %pad printk format for dma_addr_t values
Use the existing %pad printk format to print dma_addr_t values. This avoids the following warnings when compiling on the parisc platform: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type 'dma_addr_t {aka unsigned int}' [-Wformat=] Signed-off-by: Helge Deller <[email protected]> Acked-by: Felix Manlunas <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 04ecac8 commit 6e85d7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/cavium/liquidio/request_manager.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ int octeon_init_instr_queue(struct octeon_device *oct,
110110

111111
memset(iq->request_list, 0, sizeof(*iq->request_list) * num_descs);
112112

113-
dev_dbg(&oct->pci_dev->dev, "IQ[%d]: base: %p basedma: %llx count: %d\n",
114-
iq_no, iq->base_addr, iq->base_addr_dma, iq->max_count);
113+
dev_dbg(&oct->pci_dev->dev, "IQ[%d]: base: %p basedma: %pad count: %d\n",
114+
iq_no, iq->base_addr, &iq->base_addr_dma, iq->max_count);
115115

116116
iq->txpciq.u64 = txpciq.u64;
117117
iq->fill_threshold = (u32)conf->db_min;

0 commit comments

Comments
 (0)