[PATCH] swiotlb: fix gcc printk warning

From: Randy.Dunlap
Date: Fri Jan 14 2005 - 16:11:36 EST



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: Randy Dunlap <rddunlap@xxxxxxxx>

diffstat:=
arch/ia64/lib/swiotlb.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

---
diff -Naurp ./arch/ia64/lib/swiotlb.c~swiotlb_types ./arch/ia64/lib/swiotlb.c
--- ./arch/ia64/lib/swiotlb.c~swiotlb_types 2005-01-10 10:38:39.310529184 -0800
+++ ./arch/ia64/lib/swiotlb.c 2005-01-14 11:53:17.991480232 -0800
@@ -347,8 +347,8 @@ swiotlb_alloc_coherent(struct device *hw

/* Confirm address can be DMA'd by device */
if (address_needs_mapping(hwdev, dev_addr)) {
- printk("hwdev DMA mask = 0x%016lx, dev_addr = 0x%016lx\n",
- *hwdev->dma_mask, dev_addr);
+ printk("hwdev DMA mask = 0x%016Lx, dev_addr = 0x%016lx\n",
+ (unsigned long long)*hwdev->dma_mask, dev_addr);
panic("swiotlb_alloc_coherent: allocated memory is out of "
"range for device");
}