blob: 75fa7c2ad459da1f16b1f25df623768d873396e0 [file] [log] [blame]
Brad Bishopbec4ebc2022-08-03 09:55:16 -04001From 131bb3c577fff93ff9ba6f5e7d450f727fec0e62 Mon Sep 17 00:00:00 2001
2From: Julian Hall <julian.hall@arm.com>
3Date: Fri, 11 Feb 2022 12:30:45 +0000
4Subject: [PATCH] Fix format specifier in logging_caller
5
6A previous change increased the width of the opstatus value
7returned by an rpc endpoint from 32 to 64 bits. This change
8corrects the printf format specifier in the rpc logging_caller
9that corresponds to logging the opstatus value.
10
11Signed-off-by: Julian Hall <julian.hall@arm.com>
12Change-Id: Ie695a6bf8cf8014317b85196d7b933d344782b2c
13
14Upstream-Status: Pending [Not submitted to upstream yet]
15Signed-off-by: Emekcan Aras <Emekcan.Aras@arm.com>
16
17
18---
19 components/rpc/common/logging/logging_caller.c | 4 ++--
20 1 file changed, 2 insertions(+), 2 deletions(-)
21
22diff --git a/components/rpc/common/logging/logging_caller.c b/components/rpc/common/logging/logging_caller.c
23index 07c33de5..cac03f2f 100644
24--- a/components/rpc/common/logging/logging_caller.c
25+++ b/components/rpc/common/logging/logging_caller.c
26@@ -1,5 +1,5 @@
27 /*
28- * Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
29+ * Copyright (c) 2021-2022, Arm Limited and Contributors. All rights reserved.
30 *
31 * SPDX-License-Identifier: BSD-3-Clause
32 */
33@@ -87,7 +87,7 @@ static rpc_status_t call_invoke(void *context, rpc_call_handle handle, uint32_t
34
35 if (status == TS_RPC_CALL_ACCEPTED) {
36
37- fprintf(this_instance->log_file, "op_status: %d\n", *opstatus);
38+ fprintf(this_instance->log_file, "op_status: %ld\n", *opstatus);
39 fprintf(this_instance->log_file, "resp_len: %ld\n", *resp_len);
40 }
41