[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1560262374-67875-4-git-send-email-john.garry@huawei.com>
Date: Tue, 11 Jun 2019 22:12:54 +0800
From: John Garry <john.garry@...wei.com>
To: <bhelgaas@...gle.com>, <lorenzo.pieralisi@....com>, <arnd@...db.de>
CC: <linux-pci@...r.kernel.org>, <rjw@...ysocki.net>,
<linux-arm-kernel@...ts.infradead.org>, <will.deacon@....com>,
<wangkefeng.wang@...wei.com>, <linuxarm@...wei.com>,
<andriy.shevchenko@...ux.intel.com>,
<linux-kernel@...r.kernel.org>, <catalin.marinas@....com>,
John Garry <john.garry@...wei.com>
Subject: [PATCH v4 3/3] lib: logic_pio: Fix up a print
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@...wei.com>
---
lib/logic_pio.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
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;
}
--
2.17.1
Powered by blists - more mailing lists