1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 00:51:24 +03:00

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: 142468d895
This commit is contained in:
Lennart Poettering 2017-11-13 11:12:01 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent 597c25d2a7
commit 10d67460f5

View 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;
}