Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | From 613e5cfe7751068062cc92f83870e436669fc0a8 Mon Sep 17 00:00:00 2001 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 8 Jun 2017 16:49:50 -0700 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 4 | Subject: [PATCH] Add correct printf qualifier for off_t |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 5 | |
| 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 7 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 8 | --- |
| 9 | src/bios/ebda_region/ebda_region.c | 8 ++++---- |
| 10 | 1 file changed, 4 insertions(+), 4 deletions(-) |
| 11 | |
| 12 | diff --git a/src/bios/ebda_region/ebda_region.c b/src/bios/ebda_region/ebda_region.c |
| 13 | index 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 Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 17 | 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 Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 28 | @@ -93,8 +93,8 @@ static int ebda_test1(fwts_framework *fw) |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 29 | } 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 | } |