History

iommu/fsl: Use %pa to print phys_addr_t

Fix compile warnings.

Joerg Roedel committed 11 years ago

Commit 8cd4f751 parent ca4f5581 file · +3 −4Browse files

Unified · Split

drivers/iommu/fsl_pamu.c+3−4
@@ -352,7 +352,7 @@ int pamu_config_ppaace(int liodn, phys_addr_t win_addr, phys_addr_t win_size, · 351 unmodified lines
352352 unsigned long fspi;
353353
354354 if ((win_size & (win_size - 1)) || win_size < PAMU_PAGE_SIZE) {
355− pr_debug("window size too small or not a power of two %llx\n", win_size);
355+ pr_debug("window size too small or not a power of two %pa\n", &win_size);
356356 return -EINVAL;
357357 }
358358
@@ -1121,8 +1121,7 @@ static int __init fsl_pamu_probe(struct platform_device *pdev) · 762 unmodified lines
11211121 spaact = (void *)ppaact + (PAGE_SIZE << get_order(PAACT_SIZE));
11221122 omt = (void *)spaact + (PAGE_SIZE << get_order(SPAACT_SIZE));
11231123
1124− dev_dbg(&pdev->dev, "ppaact virt=%p phys=0x%llx\n", ppaact,
1125− (unsigned long long) ppaact_phys);
1124+ dev_dbg(&pdev->dev, "ppaact virt=%p phys=%pa\n", ppaact, &ppaact_phys);
11261125
11271126 /* Check to see if we need to implement the work-around on this SOC */
11281127
@@ -1138,7 +1137,7 @@ static int __init fsl_pamu_probe(struct platform_device *pdev) · 9 unmodified lines
11381137
11391138 if (csd_port_id) {
11401139 dev_dbg(&pdev->dev, "creating coherency subdomain at address "
1141− "0x%llx, size %zu, port id 0x%08x", ppaact_phys,
1140+ "%pa, size %zu, port id 0x%08x", &ppaact_phys,
11421141 mem_size, csd_port_id);
11431142
11441143 ret = create_csd(ppaact_phys, mem_size, csd_port_id);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t