From 557218776e271a66678691d2a853538ef349fb59 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 7 Jul 2022 16:31:58 +0900 Subject: [PATCH] systemctl: drop color settings in log message `log_warning()` colorize the message gracefully. --- src/systemctl/systemctl-util.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/systemctl/systemctl-util.c b/src/systemctl/systemctl-util.c index 13a039cdfb6..57cb2ca26a1 100644 --- a/src/systemctl/systemctl-util.c +++ b/src/systemctl/systemctl-util.c @@ -377,9 +377,7 @@ int need_daemon_reload(sd_bus *bus, const char *unit) { void warn_unit_file_changed(const char *unit) { assert(unit); - log_warning("%sWarning:%s The unit file, source configuration file or drop-ins of %s changed on disk. Run 'systemctl%s daemon-reload' to reload units.", - ansi_highlight_red(), - ansi_normal(), + log_warning("Warning: The unit file, source configuration file or drop-ins of %s changed on disk. Run 'systemctl%s daemon-reload' to reload units.", unit, arg_scope == LOOKUP_SCOPE_SYSTEM ? "" : " --user"); } -- 2.47.3