projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c69cd7
)
basic/log: drop parens from around file location information
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Fri, 7 Jun 2019 09:55:52 +0000
(11:55 +0200)
committer
Zbigniew 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
patch
|
blob
|
history
diff --git
a/src/basic/log.c
b/src/basic/log.c
index a81c350ab4d3ca1945920b426c4b64aeb9af20f9..84986a0970a6fddd367191296b6f63e8e675c80e 100644
(file)
--- a/
src/basic/log.c
+++ b/
src/basic/log.c
@@
-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);
}