diff --git a/src/ipc/ipc4/logging.c b/src/ipc/ipc4/logging.c index a6d8e4ccc..3b06dc1a2 100644 --- a/src/ipc/ipc4/logging.c +++ b/src/ipc/ipc4/logging.c @@ -158,9 +158,8 @@ int ipc4_logging_enable_logs(bool first_block, return 0; } -#endif +#elif CONFIG_LOG_BACKEND_SOF_PROBE -#ifdef CONFIG_LOG_BACKEND_SOF_PROBE int ipc4_logging_enable_logs(bool first_block, bool last_block, uint32_t data_offset_or_size, @@ -196,6 +195,16 @@ int ipc4_logging_enable_logs(bool first_block, return 0; } +#else /* unsupported logging method */ + +int ipc4_logging_enable_logs(bool first_block, + bool last_block, + uint32_t data_offset_or_size, + const char *data) +{ + return IPC4_UNKNOWN_MESSAGE_TYPE; +} + #endif int ipc4_logging_shutdown(void)