blob: 0d73d731090c1beeb914366572bae13e17264cf1 [file] [log] [blame]
Andrew Geisslere34f8962021-04-15 15:53:51 -05001From ee787b53d734cd952c170c9303d213d3dd18a86f 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
Andrew Geisslere34f8962021-04-15 15:53:51 -05004Subject: [PATCH 1/6] 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 Bishop1a4b7ee2018-12-16 17:11:34 -08007---
Andrew Geisslere34f8962021-04-15 15:53:51 -05008 src/bios/ebda_region/ebda_region.c | 10 +++++-----
9 1 file changed, 5 insertions(+), 5 deletions(-)
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080010
11diff --git a/src/bios/ebda_region/ebda_region.c b/src/bios/ebda_region/ebda_region.c
Andrew Geisslere34f8962021-04-15 15:53:51 -050012index b70ced10..947a24bd 100644
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080013--- a/src/bios/ebda_region/ebda_region.c
14+++ b/src/bios/ebda_region/ebda_region.c
15@@ -83,9 +83,9 @@ static int ebda_test1(fwts_framework *fw)
Brad Bishopd7bf8c12018-02-25 22:55:05 -050016 if ((entry != NULL) &&
17 (entry->type == FWTS_MEMORY_MAP_RESERVED ||
18 entry->type == FWTS_MEMORY_MAP_ACPI)) {
19- fwts_passed(fw, "EBDA region mapped at 0x%lx and reserved as a %" PRId64
20+ fwts_passed(fw, "EBDA region mapped at 0x%jdx and reserved as a %" PRId64
21 "K region in the %s table at 0x%" PRIx64 "..0x%" PRIx64 ".",
22- ebda_addr,
23+ (intmax_t)ebda_addr,
24 (entry->end_address - entry->start_address) / 1024,
25 memory_map_name,
26 entry->start_address,
Andrew Geisslere34f8962021-04-15 15:53:51 -050027@@ -93,9 +93,9 @@ static int ebda_test1(fwts_framework *fw)
Brad Bishopd7bf8c12018-02-25 22:55:05 -050028 } else
29 fwts_failed(fw, LOG_LEVEL_MEDIUM,
30 "EBDAMappedNotReserved",
31- "EBDA region mapped at 0x%lx but not reserved in the %s table.",
32- ebda_addr, memory_map_name);
Andrew Geisslere34f8962021-04-15 15:53:51 -050033-
Brad Bishopd7bf8c12018-02-25 22:55:05 -050034+ "EBDA region mapped at 0x%jdx but not reserved in the %s table.",
35+ (intmax_t)ebda_addr, memory_map_name);
Andrew Geisslere34f8962021-04-15 15:53:51 -050036+
Brad Bishopd7bf8c12018-02-25 22:55:05 -050037 return FWTS_OK;
38 }
Andrew Geisslere34f8962021-04-15 15:53:51 -050039
40--
412.25.1
42