From 302d30f8495177446b295972dac32eea4a7d263f Mon Sep 17 00:00:00 2001 From: Jason Dellaluce Date: Tue, 11 Oct 2022 14:55:24 +0000 Subject: [PATCH] chore(userspace/falco): polish ignored event warning message Signed-off-by: Jason Dellaluce --- userspace/falco/app_actions/load_rules_files.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/userspace/falco/app_actions/load_rules_files.cpp b/userspace/falco/app_actions/load_rules_files.cpp index 837b2cba..fab5ff42 100644 --- a/userspace/falco/app_actions/load_rules_files.cpp +++ b/userspace/falco/app_actions/load_rules_files.cpp @@ -59,13 +59,15 @@ void application::check_for_ignored_events() } /* Get the names of the ignored events and print them. */ - std::cerr << std::endl << "Rules match ignored syscall: warning (ignored-evttype):" << std::endl; - std::cerr << "Loaded rules match the following events:" << std::endl; + std::cerr << "Rules match ignored syscall: warning (ignored-evttype):" << std::endl; + std::cerr << "Loaded rules match the following events: "; + bool first = true; for(const auto& it : event_names) { - std::cerr << "\t- " << it.c_str() << std::endl; + std::cerr << (first ? "" : ", ") << it.c_str(); + first = false; } - std::cerr << "But these events are not returned unless running falco with -A" << std::endl << std::endl; + std::cerr << std::endl << "But these events are not returned unless running falco with -A" << std::endl; } application::run_result application::load_rules_files()