Message ID | 1560262374-67875-4-git-send-email-john.garry@huawei.com |
---|---|
State | New |
Headers | show |
Series | Fix ARM64 crash for accessing unmapped IO port regions | expand |
diff --git a/lib/logic_pio.c b/lib/logic_pio.c index 47d24f428908..030708ce7bb6 100644 --- a/lib/logic_pio.c +++ b/lib/logic_pio.c @@ -186,8 +186,7 @@ unsigned long logic_pio_trans_cpuaddr(resource_size_t addr) if (in_range(addr, range->hw_start, range->size)) return addr - range->hw_start + range->io_start; } - pr_err("addr %llx not registered in io_range_list\n", - (unsigned long long) addr); + pr_err("addr %pa not registered in io_range_list\n", &addr); return ~0UL; }
For the print in logic_pio_trans_cpuaddr(), don't cast the value to unsigned long long, and just print the resource_size_t type directly. Signed-off-by: John Garry <john.garry@huawei.com> --- lib/logic_pio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.17.1