aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Hall <julian.hall@arm.com>2021-12-20 09:18:51 +0000
committerGyörgy Szing <gyorgy.szing@arm.com>2022-07-05 07:42:25 +0200
commit9eaaaa6cae643fc6d9ff7f96b9de757d0684ab7d (patch)
tree01ad527a7ac3901e71d0a961950d32ecc3f32903
parent6e02acf3aebffa06a4c616380b1acadb0704f501 (diff)
downloadtrusted-services-9eaaaa6cae643fc6d9ff7f96b9de757d0684ab7d.tar.gz
Fix compiler warning in logging_caller.c
The logging_caller is a debug component used for logging RPC call request and response parameters. Since changing the opstatus from 32-bit to 64-bit, a printf format specifier warning has appeared. This commit fixes the format specifier. Signed-off-by: Julian Hall <julian.hall@arm.com> Change-Id: I7362a66fbcedbf39b73193ddeb6b8e62b8e9dd2b
-rw-r--r--components/rpc/common/logging/logging_caller.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/rpc/common/logging/logging_caller.c b/components/rpc/common/logging/logging_caller.c
index 07c33de5d..f246ebfc1 100644
--- a/components/rpc/common/logging/logging_caller.c
+++ b/components/rpc/common/logging/logging_caller.c
@@ -87,7 +87,7 @@ static rpc_status_t call_invoke(void *context, rpc_call_handle handle, uint32_t
if (status == TS_RPC_CALL_ACCEPTED) {
- fprintf(this_instance->log_file, "op_status: %d\n", *opstatus);
+ fprintf(this_instance->log_file, "op_status: %ld\n", *opstatus);
fprintf(this_instance->log_file, "resp_len: %ld\n", *resp_len);
}