]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
install: drop redundant printing of unit name (#7296)
authorLennart Poettering <lennart@poettering.net>
Mon, 13 Nov 2017 10:12:01 +0000 (11:12 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 13 Nov 2017 10:12:01 +0000 (11:12 +0100)
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

index ed0c4a5a11bbafb2800f2571ccda7aa5f659915f..6a31e62c44754a83b325c3652aeca08dc22a0b2c 100644 (file)
@@ -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;
         }