Commit b4eaf126 authored by Randy Dunlap's avatar Randy Dunlap Committed by Tony Luck

[IA64/X86_64] swiotlb.c: fix gcc printk warning

swiotlb: Fix gcc printk format warning on x86_64, OK for ia64:
arch/ia64/lib/swiotlb.c:351: warning: long unsigned int format, long
long unsigned int arg (arg 2)
Signed-off-by: default avatarRandy Dunlap <rddunlap@osdl.org>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent f95e6dae
...@@ -357,8 +357,8 @@ swiotlb_alloc_coherent(struct device *hwdev, size_t size, ...@@ -357,8 +357,8 @@ swiotlb_alloc_coherent(struct device *hwdev, size_t size,
/* Confirm address can be DMA'd by device */ /* Confirm address can be DMA'd by device */
if (address_needs_mapping(hwdev, dev_addr)) { if (address_needs_mapping(hwdev, dev_addr)) {
printk("hwdev DMA mask = 0x%016lx, dev_addr = 0x%016lx\n", printk("hwdev DMA mask = 0x%016Lx, dev_addr = 0x%016lx\n",
*hwdev->dma_mask, dev_addr); (unsigned long long)*hwdev->dma_mask, dev_addr);
panic("swiotlb_alloc_coherent: allocated memory is out of " panic("swiotlb_alloc_coherent: allocated memory is out of "
"range for device"); "range for device");
} }
......
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