Skip to content

Commit

Permalink
dma-debug: fix printk formats (i386)
Browse files Browse the repository at this point in the history
Fix printk format warnings in dma-debug:

  lib/dma-debug.c:645: warning: format '%016llx' expects type 'long long unsigned int', but argument 6 has type 'dma_addr_t'
  lib/dma-debug.c:662: warning: format '%016llx' expects type 'long long unsigned int', but argument 6 has type 'dma_addr_t'
  lib/dma-debug.c:676: warning: format '%016llx' expects type 'long long unsigned int', but argument 6 has type 'dma_addr_t'
  lib/dma-debug.c:686: warning: format '%016llx' expects type 'long long unsigned int', but argument 6 has type 'dma_addr_t'

Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
rddunlap authored and torvalds committed Mar 30, 2009
1 parent 3a355cc commit 93c36ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/dma-debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ static void check_sync(struct device *dev, dma_addr_t addr,
err_printk(dev, NULL, "DMA-API: device driver tries "
"to sync DMA memory it has not allocated "
"[device address=0x%016llx] [size=%llu bytes]\n",
addr, size);
(unsigned long long)addr, size);
goto out;
}

Expand All @@ -666,7 +666,7 @@ static void check_sync(struct device *dev, dma_addr_t addr,
"DMA memory with different direction "
"[device address=0x%016llx] [size=%llu bytes] "
"[mapped with %s] [synced with %s]\n",
addr, entry->size,
(unsigned long long)addr, entry->size,
dir2name[entry->direction],
dir2name[direction]);
}
Expand All @@ -680,7 +680,7 @@ static void check_sync(struct device *dev, dma_addr_t addr,
"device read-only DMA memory for cpu "
"[device address=0x%016llx] [size=%llu bytes] "
"[mapped with %s] [synced with %s]\n",
addr, entry->size,
(unsigned long long)addr, entry->size,
dir2name[entry->direction],
dir2name[direction]);

Expand All @@ -690,7 +690,7 @@ static void check_sync(struct device *dev, dma_addr_t addr,
"device write-only DMA memory to device "
"[device address=0x%016llx] [size=%llu bytes] "
"[mapped with %s] [synced with %s]\n",
addr, entry->size,
(unsigned long long)addr, entry->size,
dir2name[entry->direction],
dir2name[direction]);

Expand Down

0 comments on commit 93c36ed

Please sign in to comment.