diff --git a/userspace/falco/app/actions/process_events.cpp b/userspace/falco/app/actions/process_events.cpp index f2412edd579..ea89add46f9 100644 --- a/userspace/falco/app/actions/process_events.cpp +++ b/userspace/falco/app/actions/process_events.cpp @@ -265,10 +265,13 @@ static falco::app::run_result do_inspect( if (source_engine_idx == sinsp_no_event_source_idx) { std::string msg = "Unknown event source for inspector's event"; - if (ev->get_type() == PPME_PLUGINEVENT_E) + if (ev->get_type() == PPME_PLUGINEVENT_E || ev->get_type() == PPME_ASYNCEVENT_E) { - auto pluginID = *(int32_t *)ev->get_param(0)->m_val; - msg += " (plugin ID: " + std::to_string(pluginID) + ")"; + auto pluginID = *(uint32_t *)ev->get_param(0)->m_val; + if (pluginID != 0) + { + msg += " (plugin ID: " + std::to_string(pluginID) + ")"; + } } return run_result::fatal(msg); }