From 10d67460f5a6a0cf369ac6ffb31106de46424174 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 13 Nov 2017 11:12:01 +0100 Subject: [PATCH] install: drop redundant printing of unit name (#7296) We already print it as part of log_syntax() internal logic, don't print it again, and in particular, don't print it at the end of log line, such a strange place. Follow-up for: 142468d89508c63262dd59335ea6d4fe82267564 --- src/shared/install.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/install.c b/src/shared/install.c index ed0c4a5a11..6a31e62c44 100644 --- a/src/shared/install.c +++ b/src/shared/install.c @@ -1223,7 +1223,7 @@ static int config_parse_default_instance( return 0; if (!unit_name_is_valid(unit, UNIT_NAME_TEMPLATE)) return log_syntax(unit, LOG_WARNING, filename, line, 0, - "DefaultInstance= only makes sense for template units, ignoring. %s", unit); + "DefaultInstance= only makes sense for template units, ignoring."); r = install_full_printf(i, rvalue, &printed); if (r < 0) @@ -2995,7 +2995,7 @@ static int preset_prepare_one( if (r < 0) return r; if (!streq(name, i->name)) { - log_debug("Skipping %s because is an alias for %s", name, i->name); + log_debug("Skipping %s because it is an alias for %s.", name, i->name); return 0; }