From 956d76f69d0c96829784c5a6d16aa79e4e0ecab1 Mon Sep 17 00:00:00 2001 From: Javier Almansa Sobrino Date: Thu, 25 Nov 2021 09:29:27 +0000 Subject: [PATCH] fix(xlat): fix bug on VERBOSE trace When log level is set to VERBOSE, a build error happens due a incorrect format stringon a printf call. Signed-off-by: Javier Almansa Sobrino Change-Id: I8f869e078a3c179470977dadc063521c1ae30dbb --- lib/xlat_tables_v2/xlat_tables_utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/xlat_tables_v2/xlat_tables_utils.c b/lib/xlat_tables_v2/xlat_tables_utils.c index df1738642..38a375edf 100644 --- a/lib/xlat_tables_v2/xlat_tables_utils.c +++ b/lib/xlat_tables_v2/xlat_tables_utils.c @@ -6,6 +6,7 @@ #include #include +#include #include #include #include @@ -199,7 +200,7 @@ static void xlat_tables_print_internal(xlat_ctx_t *ctx, uintptr_t table_base_va, (uint64_t *)addr_inner, XLAT_TABLE_ENTRIES, level + 1U); } else { - printf("%sVA:0x%lx PA:0x%llx size:0x%zx ", + printf("%sVA:0x%lx PA:0x%" PRIx64 " size:0x%zx ", level_spacers[level], table_idx_va, (uint64_t)(desc & TABLE_ADDR_MASK), level_size);