summaryrefslogtreecommitdiff
path: root/lib/xlat_tables_v2
diff options
context:
space:
mode:
authorJavier Almansa Sobrino <javier.almansasobrino@arm.com>2021-11-25 09:29:27 +0000
committerJavier Almansa Sobrino <javier.almansasobrino@arm.com>2021-12-03 10:31:17 +0000
commit956d76f69d0c96829784c5a6d16aa79e4e0ecab1 (patch)
tree40ee29d57bd2e81a1d01c25573f515661aaf5d64 /lib/xlat_tables_v2
parent93adf9304732b0fdde397572ec70c81b90d2ad3a (diff)
downloadarm-trusted-firmware-956d76f69d0c96829784c5a6d16aa79e4e0ecab1.tar.gz
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 <javier.almansasobrino@arm.com> Change-Id: I8f869e078a3c179470977dadc063521c1ae30dbb
Diffstat (limited to 'lib/xlat_tables_v2')
-rw-r--r--lib/xlat_tables_v2/xlat_tables_utils.c3
1 files changed, 2 insertions, 1 deletions
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 <assert.h>
#include <errno.h>
+#include <inttypes.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
@@ -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);