]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
share/log: change log_syntax from "[a:b] " to "a:b: "
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 11 Dec 2016 19:37:12 +0000 (14:37 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 11 Dec 2016 20:43:16 +0000 (15:43 -0500)
Those square brackets don't fit how our other messages look like; we use colons
everywhere else. The "[a:b]" format was originally added in
ed5bcfbe3c3b68e59242c03649eea03a9707d318, and remained unchanged for 7 years,
but in the meantime other conventions evolved.

The new version is also one character shorter.

[/etc/systemd/system/systemd-networkd.service.d/override.conf:2] Failed to parse sec value, ignoring: ...
  ↓
/etc/systemd/system/systemd-networkd.service.d/override.conf:2: Failed to parse sec value, ignoring: ...

src/basic/log.c

index 9febe391ac72afca0c1205d2beeb98e8cfb67956..4af4d55b33b2fafd1e7b35a2eac9ae3a9e23287b 100644 (file)
@@ -1162,7 +1162,7 @@ int log_syntax_internal(
                         LOG_MESSAGE_ID(SD_MESSAGE_INVALID_CONFIGURATION),
                         "CONFIG_FILE=%s", config_file,
                         "CONFIG_LINE=%u", config_line,
-                        LOG_MESSAGE("[%s:%u] %s", config_file, config_line, buffer),
+                        LOG_MESSAGE("%s:%u: %s", config_file, config_line, buffer),
                         unit_fmt, unit,
                         NULL);
 }