mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-24 13:55:56 +00:00
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
This commit is contained in:
parent
93adf93047
commit
956d76f69d
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <inttypes.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.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,
|
(uint64_t *)addr_inner,
|
||||||
XLAT_TABLE_ENTRIES, level + 1U);
|
XLAT_TABLE_ENTRIES, level + 1U);
|
||||||
} else {
|
} 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,
|
level_spacers[level], table_idx_va,
|
||||||
(uint64_t)(desc & TABLE_ADDR_MASK),
|
(uint64_t)(desc & TABLE_ADDR_MASK),
|
||||||
level_size);
|
level_size);
|
||||||
|
|
Loading…
Add table
Reference in a new issue