Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | From 232daf5fca6fb52cced5e810f2601fe1a71b96d8 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 8 Jun 2017 16:49:50 -0700 |
| 4 | Subject: [PATCH 1/3] Add correct printf qualifier for off_t |
| 5 | |
| 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 7 | --- |
| 8 | src/bios/ebda_region/ebda_region.c | 4 ++-- |
| 9 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 10 | |
| 11 | Index: git/src/bios/ebda_region/ebda_region.c |
| 12 | =================================================================== |
| 13 | --- git.orig/src/bios/ebda_region/ebda_region.c |
| 14 | +++ git/src/bios/ebda_region/ebda_region.c |
| 15 | @@ -83,9 +83,9 @@ static int ebda_test1(fwts_framework *fw |
| 16 | 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, |
| 27 | @@ -93,8 +93,8 @@ static int ebda_test1(fwts_framework *fw |
| 28 | } 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); |
| 33 | + "EBDA region mapped at 0x%jdx but not reserved in the %s table.", |
| 34 | + (intmax_t)ebda_addr, memory_map_name); |
| 35 | |
| 36 | return FWTS_OK; |
| 37 | } |