Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | From 131bb3c577fff93ff9ba6f5e7d450f727fec0e62 Mon Sep 17 00:00:00 2001 |
| 2 | From: Julian Hall <julian.hall@arm.com> |
| 3 | Date: Fri, 11 Feb 2022 12:30:45 +0000 |
| 4 | Subject: [PATCH] Fix format specifier in logging_caller |
| 5 | |
| 6 | A previous change increased the width of the opstatus value |
| 7 | returned by an rpc endpoint from 32 to 64 bits. This change |
| 8 | corrects the printf format specifier in the rpc logging_caller |
| 9 | that corresponds to logging the opstatus value. |
| 10 | |
| 11 | Signed-off-by: Julian Hall <julian.hall@arm.com> |
| 12 | Change-Id: Ie695a6bf8cf8014317b85196d7b933d344782b2c |
| 13 | |
| 14 | Upstream-Status: Pending [Not submitted to upstream yet] |
| 15 | Signed-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 | |
| 22 | diff --git a/components/rpc/common/logging/logging_caller.c b/components/rpc/common/logging/logging_caller.c |
| 23 | index 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 | |