diff options
author | Scott Branden <scott.branden@broadcom.com> | 2020-08-25 13:49:32 -0700 |
---|---|---|
committer | Manish Pandey <manish.pandey2@arm.com> | 2021-11-08 14:41:17 +0000 |
commit | 4ce3e99a336b74611349595ea7fd5ed0277c3eeb (patch) | |
tree | da86b310c5d589ce2a0a4cb93e0ab88af5818c2d /services/spd | |
parent | 663461b9144e21b3fb0de92c886b63254964429a (diff) | |
download | arm-trusted-firmware-4ce3e99a336b74611349595ea7fd5ed0277c3eeb.tar.gz |
fix: libc: use long for 64-bit types on aarch64
Use long instead of long long on aarch64 for 64_t stdint types.
Introduce inttypes.h to properly support printf format specifiers for
fixed width types for such change.
Change-Id: I0bca594687a996fde0a9702d7a383055b99f10a1
Signed-off-by: Scott Branden <scott.branden@broadcom.com>
Diffstat (limited to 'services/spd')
-rw-r--r-- | services/spd/trusty/trusty.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/services/spd/trusty/trusty.c b/services/spd/trusty/trusty.c index e102b8228..7daebcdd1 100644 --- a/services/spd/trusty/trusty.c +++ b/services/spd/trusty/trusty.c @@ -6,8 +6,10 @@ */ #include <assert.h> +#include <inttypes.h> #include <lib/xlat_tables/xlat_tables_v2.h> #include <stdbool.h> +#include <stdint.h> #include <string.h> #include <arch_helpers.h> @@ -172,7 +174,7 @@ static uint64_t trusty_set_fiq_handler(void *handle, uint64_t cpu, struct trusty_cpu_ctx *ctx; if (cpu >= (uint64_t)PLATFORM_CORE_COUNT) { - ERROR("%s: cpu %lld >= %d\n", __func__, cpu, PLATFORM_CORE_COUNT); + ERROR("%s: cpu %" PRId64 " >= %d\n", __func__, cpu, PLATFORM_CORE_COUNT); return (uint64_t)SM_ERR_INVALID_PARAMETERS; } @@ -204,7 +206,7 @@ static uint64_t trusty_fiq_exit(void *handle, uint64_t x1, uint64_t x2, uint64_t ret = trusty_context_switch(NON_SECURE, SMC_FC_FIQ_EXIT, 0, 0, 0); if (ret.r0 != 1U) { - INFO("%s(%p) SMC_FC_FIQ_EXIT returned unexpected value, %lld\n", + INFO("%s(%p) SMC_FC_FIQ_EXIT returned unexpected value, %" PRId64 "\n", __func__, handle, ret.r0); } @@ -356,7 +358,7 @@ static void trusty_cpu_suspend(uint32_t off) ret = trusty_context_switch(NON_SECURE, SMC_FC_CPU_SUSPEND, off, 0, 0); if (ret.r0 != 0U) { - INFO("%s: cpu %d, SMC_FC_CPU_SUSPEND returned unexpected value, %lld\n", + INFO("%s: cpu %d, SMC_FC_CPU_SUSPEND returned unexpected value, %" PRId64 "\n", __func__, plat_my_core_pos(), ret.r0); } } @@ -367,7 +369,7 @@ static void trusty_cpu_resume(uint32_t on) ret = trusty_context_switch(NON_SECURE, SMC_FC_CPU_RESUME, on, 0, 0); if (ret.r0 != 0U) { - INFO("%s: cpu %d, SMC_FC_CPU_RESUME returned unexpected value, %lld\n", + INFO("%s: cpu %d, SMC_FC_CPU_RESUME returned unexpected value, %" PRId64 "\n", __func__, plat_my_core_pos(), ret.r0); } } |