Skip to content

Commit

Permalink
liquidio: Use %pad printk format for dma_addr_t values
Browse files Browse the repository at this point in the history
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 <deller@gmx.de>
Acked-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Helge Deller authored and David S. Miller committed Jul 16, 2018
1 parent 04ecac8 commit 6e85d7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/cavium/liquidio/request_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ int octeon_init_instr_queue(struct octeon_device *oct,

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

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

iq->txpciq.u64 = txpciq.u64;
iq->fill_threshold = (u32)conf->db_min;
Expand Down

0 comments on commit 6e85d7a

Please sign in to comment.