fix(rmm): log output values based on return status code

For all RMI commands output values are defined
when return status code is RMI_SUCCESS and
in case of RMI_RTT_DESTROY and RMI_DATA_DESTROY
also for RMI_ERROR_RTT. This patch changes logging
of output values according to this condition and
corrects naming of RMI_ERROR_RTT error code in
comments.

Signed-off-by: AlexeiFedorov <Alexei.Fedorov@arm.com>
Change-Id: I7dd2d7c0da03e761a9fe8a3eede6baeca112f4e9
diff --git a/runtime/core/handler.c b/runtime/core/handler.c
index cd007ff..9550bb2 100644
--- a/runtime/core/handler.c
+++ b/runtime/core/handler.c
@@ -214,7 +214,12 @@
 		     (rc.status == RMI_ERROR_REALM)) ||
 		     (rc.status == RMI_ERROR_RTT)) {
 			INFO(" %x", rc.index);
-		} else if (rc.status == RMI_SUCCESS) {
+		}
+
+		if ((rc.status == RMI_SUCCESS) ||
+		   ((rc.status == RMI_ERROR_RTT) &&
+		   ((function_id == SMC_RMM_RTT_DESTROY) ||
+		    (function_id == SMC_RMM_DATA_DESTROY)))) {
 			/* Print output values */
 			num = (handler->type >> 8) & 0xFF;
 			assert(num <= MAX_NUM_OUTPUT_VALS);