chore(runtime): fix logging of RMI and RSI commands
This patch fixes the following issues with logging:
- logging of RMI function name in rmi_log_on_exit()
INFO("SMC_RMI_%-25s", handler->fn_name);
now matches the maximum name length of RSI handler
function SMC_RSI_RDEV_GET_INTERFACE_REPORT of 33 chars
excluding the null terminator.
- removed logging of return status and results of RSI
calls which return to host, because these values are
valid only when after the call execution continues in
realm.
Signed-off-by: AlexeiFedorov <Alexei.Fedorov@arm.com>
Change-Id: Ie9d43fe6451d88648bc5994fcf396d2c8015733e
diff --git a/runtime/core/handler.c b/runtime/core/handler.c
index fad1c6a..46894b2 100644
--- a/runtime/core/handler.c
+++ b/runtime/core/handler.c
@@ -221,8 +221,12 @@
(handler->log_error && (rc.status != RMI_SUCCESS))) {
unsigned int num;
- /* Print function name */
- INFO("SMC_RMI_%-21s", handler->fn_name);
+ /*
+ * Print function name.
+ * RSI handler function SMC_RSI_RDEV_GET_INTERFACE_REPORT has
+ * maximum name length of 33 chars excluding the null terminator.
+ */
+ INFO("SMC_RMI_%-25s", handler->fn_name);
/* Print arguments */
num = (unsigned int)handler->type & 0xFFU;