aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/apei/einj.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/apei/einj.c')
-rw-r--r--drivers/acpi/apei/einj.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/acpi/apei/einj.c b/drivers/acpi/apei/einj.c
index 589b96c38704..d25390274d7b 100644
--- a/drivers/acpi/apei/einj.c
+++ b/drivers/acpi/apei/einj.c
@@ -209,9 +209,10 @@ static int __einj_error_trigger(u64 trigger_paddr)
209 "APEI EINJ Trigger Table"); 209 "APEI EINJ Trigger Table");
210 if (!r) { 210 if (!r) {
211 pr_err(EINJ_PFX 211 pr_err(EINJ_PFX
212 "Can not request iomem region <%016llx-%016llx> for Trigger table.\n", 212 "Can not request [mem %#010llx-%#010llx] for Trigger table\n",
213 (unsigned long long)trigger_paddr, 213 (unsigned long long)trigger_paddr,
214 (unsigned long long)trigger_paddr+sizeof(*trigger_tab)); 214 (unsigned long long)trigger_paddr +
215 sizeof(*trigger_tab) - 1);
215 goto out; 216 goto out;
216 } 217 }
217 trigger_tab = ioremap_cache(trigger_paddr, sizeof(*trigger_tab)); 218 trigger_tab = ioremap_cache(trigger_paddr, sizeof(*trigger_tab));
@@ -232,9 +233,9 @@ static int __einj_error_trigger(u64 trigger_paddr)
232 "APEI EINJ Trigger Table"); 233 "APEI EINJ Trigger Table");
233 if (!r) { 234 if (!r) {
234 pr_err(EINJ_PFX 235 pr_err(EINJ_PFX
235"Can not request iomem region <%016llx-%016llx> for Trigger Table Entry.\n", 236"Can not request [mem %#010llx-%#010llx] for Trigger Table Entry\n",
236 (unsigned long long)trigger_paddr+sizeof(*trigger_tab), 237 (unsigned long long)trigger_paddr + sizeof(*trigger_tab),
237 (unsigned long long)trigger_paddr + table_size); 238 (unsigned long long)trigger_paddr + table_size - 1);
238 goto out_rel_header; 239 goto out_rel_header;
239 } 240 }
240 iounmap(trigger_tab); 241 iounmap(trigger_tab);