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
diff --git a/components/rpc/common/logging/logging_caller.c b/components/rpc/common/logging/logging_caller.c
index 07c33de..f246ebf 100644
--- a/components/rpc/common/logging/logging_caller.c
+++ b/components/rpc/common/logging/logging_caller.c
@@ -87,7 +87,7 @@
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);
}