diff options
author | Jerome Forissier <jerome.forissier@linaro.org> | 2019-02-27 18:02:16 +0100 |
---|---|---|
committer | Jérôme Forissier <jerome.forissier@linaro.org> | 2019-03-05 12:54:55 +0100 |
commit | dba5a1eab8af1ed864dc98c51a67c738c645a87e (patch) | |
tree | 383a57009d287931d960d8075fcd1d7023e85c98 | |
parent | 64718c9361636e9750c29da790ddb3a8bfa55f6d (diff) |
core: better align output of TA dump with many or big regions
With the introduction of shared libutee/libutils/libmbedtls etc., it
is not uncommon for a TA to have more than 10 memory regions. When this
happens, the crash dump output is not properly aligned.
Similarly, since there is no width specifier when we print the region
size, misalignments can occur.
This commit makes the output look good for up to 100 regions of up to
16 MiB in size.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
-rw-r--r-- | core/arch/arm/kernel/user_ta.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/arch/arm/kernel/user_ta.c b/core/arch/arm/kernel/user_ta.c index a61e8189..8b31daff 100644 --- a/core/arch/arm/kernel/user_ta.c +++ b/core/arch/arm/kernel/user_ta.c @@ -425,8 +425,8 @@ static void user_ta_dump_state(struct tee_ta_ctx *ctx) mattr_perm_to_str(flags, sizeof(flags), r->attr); describe_region(utc, r->va, r->size, desc, sizeof(desc)); - EMSG_RAW(" region %zu: va %#" PRIxVA " pa %#" PRIxPA - " size %#zx flags %s %s", + EMSG_RAW(" region %2zu: va %#" PRIxVA " pa %#" PRIxPA + " size 0x%06zx flags %s %s", n, r->va, pa, r->size, flags, desc); n++; } |