From: Yu Watanabe Date: Thu, 7 Jul 2022 07:31:58 +0000 (+0900) Subject: systemctl: drop color settings in log message X-Git-Tag: v252-rc1~709^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=557218776e271a66678691d2a853538ef349fb59;p=thirdparty%2Fsystemd.git systemctl: drop color settings in log message `log_warning()` colorize the message gracefully. --- 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"); }