blob: c2d679aabc3f31c01adec1ce62b96ceb8627de8f [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 613e5cfe7751068062cc92f83870e436669fc0a8 Mon Sep 17 00:00:00 2001
Brad Bishopd7bf8c12018-02-25 22:55:05 -05002From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 8 Jun 2017 16:49:50 -0700
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08004Subject: [PATCH] Add correct printf qualifier for off_t
Brad Bishopd7bf8c12018-02-25 22:55:05 -05005
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
Brad Bishopd7bf8c12018-02-25 22:55:05 -05007
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08008---
9 src/bios/ebda_region/ebda_region.c | 8 ++++----
10 1 file changed, 4 insertions(+), 4 deletions(-)
11
12diff --git a/src/bios/ebda_region/ebda_region.c b/src/bios/ebda_region/ebda_region.c
13index 16c39357..ad6d635c 100644
14--- a/src/bios/ebda_region/ebda_region.c
15+++ b/src/bios/ebda_region/ebda_region.c
16@@ -83,9 +83,9 @@ static int ebda_test1(fwts_framework *fw)
Brad Bishopd7bf8c12018-02-25 22:55:05 -050017 if ((entry != NULL) &&
18 (entry->type == FWTS_MEMORY_MAP_RESERVED ||
19 entry->type == FWTS_MEMORY_MAP_ACPI)) {
20- fwts_passed(fw, "EBDA region mapped at 0x%lx and reserved as a %" PRId64
21+ fwts_passed(fw, "EBDA region mapped at 0x%jdx and reserved as a %" PRId64
22 "K region in the %s table at 0x%" PRIx64 "..0x%" PRIx64 ".",
23- ebda_addr,
24+ (intmax_t)ebda_addr,
25 (entry->end_address - entry->start_address) / 1024,
26 memory_map_name,
27 entry->start_address,
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080028@@ -93,8 +93,8 @@ static int ebda_test1(fwts_framework *fw)
Brad Bishopd7bf8c12018-02-25 22:55:05 -050029 } else
30 fwts_failed(fw, LOG_LEVEL_MEDIUM,
31 "EBDAMappedNotReserved",
32- "EBDA region mapped at 0x%lx but not reserved in the %s table.",
33- ebda_addr, memory_map_name);
34+ "EBDA region mapped at 0x%jdx but not reserved in the %s table.",
35+ (intmax_t)ebda_addr, memory_map_name);
36
37 return FWTS_OK;
38 }