]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
basic/log: drop parens from around file location information
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 7 Jun 2019 09:55:52 +0000 (11:55 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 1 Jul 2019 12:32:45 +0000 (14:32 +0200)
There's really no risk of confusion, and shorter is better.

src/basic/log.c

index a81c350ab4d3ca1945920b426c4b64aeb9af20f9..84986a0970a6fddd367191296b6f63e8e675c80e 100644 (file)
@@ -351,7 +351,7 @@ static int write_to_console(
                 get_log_colors(LOG_PRI(level), &on, &off, NULL);
 
         if (show_location) {
-                (void) snprintf(location, sizeof location, "(%s:%i) ", file, line);
+                (void) snprintf(location, sizeof location, "%s:%i: ", file, line);
                 iovec[n++] = IOVEC_MAKE_STRING(location);
         }