diff --git a/src/ipc/ipc4/handler.c b/src/ipc/ipc4/handler.c index 8a37daab8..5dae7ddee 100644 --- a/src/ipc/ipc4/handler.c +++ b/src/ipc/ipc4/handler.c @@ -1091,9 +1091,13 @@ void ipc_cmd(struct ipc_cmd_hdr *_hdr) switch (target) { case SOF_IPC4_MESSAGE_TARGET_FW_GEN_MSG: err = ipc4_process_glb_message(in); + if (err) + tr_err(&ipc_tr, "ipc4: FW_GEN_MSG failed with err %d", err); break; case SOF_IPC4_MESSAGE_TARGET_MODULE_MSG: err = ipc4_process_module_message(in); + if (err) + tr_err(&ipc_tr, "ipc4: MODULE_MSG failed with err %d", err); break; default: /* should not reach here as we only have 2 message types */ @@ -1101,9 +1105,6 @@ void ipc_cmd(struct ipc_cmd_hdr *_hdr) err = IPC4_UNKNOWN_MESSAGE_TYPE; } - if (err) - tr_err(&ipc_tr, "ipc4: %d failed err %d", target, err); - /* FW sends an ipc message to host if request bit is clear */ if (in->primary.r.rsp == SOF_IPC4_MESSAGE_DIR_MSG_REQUEST) { struct ipc *ipc = ipc_get();