Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | From 25f18b9ac37960dc12a3b648a5c866bd56ef2cbe Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 8 Jun 2017 16:50:23 -0700 |
| 4 | Subject: [PATCH 2/3] Add C99 defined format for printing uint64_t |
| 5 | |
| 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 7 | --- |
| 8 | src/opal/reserv_mem.c | 8 ++++---- |
| 9 | 1 file changed, 4 insertions(+), 4 deletions(-) |
| 10 | |
| 11 | diff --git a/src/opal/reserv_mem.c b/src/opal/reserv_mem.c |
| 12 | index eeec2947..f0672e05 100644 |
| 13 | --- a/src/opal/reserv_mem.c |
| 14 | +++ b/src/opal/reserv_mem.c |
| 15 | @@ -185,7 +185,7 @@ static int reserv_mem_limits_test(fwts_framework *fw) |
| 16 | regions[j].start = (uint64_t)be64toh(ranges[2 * j]); |
| 17 | regions[j].len = (uint64_t)be64toh(ranges[2 * j + 1]); |
| 18 | fwts_log_info(fw, "Region name %80s" |
| 19 | - " start: 0x%08lx, len: 0x%08lx\n", |
| 20 | + " start: 0x%08" PRIx64 ", len: 0x%08" PRIx64 "\n", |
| 21 | regions[j].name, regions[j].start, regions[j].len); |
| 22 | } |
| 23 | |
| 24 | @@ -248,7 +248,7 @@ static int reserv_mem_limits_test(fwts_framework *fw) |
| 25 | fwts_failed(fw, LOG_LEVEL_MEDIUM, |
| 26 | "ImageSizeMismatch", |
| 27 | "Mismatch in homer-image size, " |
| 28 | - "expected: 0x%lx, actual: 0x%lx", |
| 29 | + "expected: 0x%" PRIx64 ", actual: 0x%" PRIx64 "", |
| 30 | configstruct.homer, regions[j].len); |
| 31 | ok = false; |
| 32 | } else |
| 33 | @@ -261,7 +261,7 @@ static int reserv_mem_limits_test(fwts_framework *fw) |
| 34 | fwts_failed(fw, LOG_LEVEL_MEDIUM, |
| 35 | "ImageSizeMismatch", |
| 36 | "Mismatch in slw-image size, " |
| 37 | - "expected: 0x%lx, actual: 0x%lx", |
| 38 | + "expected: 0x%" PRIx64 ", actual: 0x%" PRIx64 "", |
| 39 | configstruct.slw, regions[j].len); |
| 40 | ok = false; |
| 41 | } else |
| 42 | @@ -274,7 +274,7 @@ static int reserv_mem_limits_test(fwts_framework *fw) |
| 43 | fwts_failed(fw, LOG_LEVEL_MEDIUM, |
| 44 | "ImageSizeMismatch", |
| 45 | "Mismatch in occ-common-area size, " |
| 46 | - "expected: 0x%lx, actual: 0x%lx", |
| 47 | + "expected: 0x%" PRIx64", actual: 0x%" PRIx64"", |
| 48 | configstruct.occ_common, |
| 49 | regions[j].len); |
| 50 | ok = false; |
| 51 | -- |
| 52 | 2.13.1 |
| 53 | |