aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-07-25 15:29:57 +0200
committerJustin M. Keyes <justinkz@gmail.com>2018-07-25 15:29:57 +0200
commit27dc42160fa2acbc3e5894068f28808c70ca3f44 (patch)
tree7eab776d1de5f44c555753bbdfa0b46731ba34d6 /src
parentef86aad8783b7e38e0dfa4c6d4e3f652206ab22b (diff)
downloadrneovim-27dc42160fa2acbc3e5894068f28808c70ca3f44.tar.gz
rneovim-27dc42160fa2acbc3e5894068f28808c70ca3f44.tar.bz2
rneovim-27dc42160fa2acbc3e5894068f28808c70ca3f44.zip
log.c: format: padding
- milliseconds: leading zeroes - PID: whitespace padding
Diffstat (limited to 'src')
-rw-r--r--src/nvim/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/log.c b/src/nvim/log.c
index 289b95b227..e485d4c338 100644
--- a/src/nvim/log.c
+++ b/src/nvim/log.c
@@ -285,10 +285,10 @@ static bool v_do_log_to_file(FILE *log_file, int log_level,
// Print the log message.
int64_t pid = os_get_pid();
int rv = (line_num == -1 || func_name == NULL)
- ? fprintf(log_file, "%s %s.%-3d %" PRId64 " %s",
+ ? fprintf(log_file, "%s %s.%03d %-5" PRId64 " %s",
log_levels[log_level], date_time, millis, pid,
(context == NULL ? "?:" : context))
- : fprintf(log_file, "%s %s.%-3d %" PRId64 " %s%s:%d: ",
+ : fprintf(log_file, "%s %s.%03d %-5" PRId64 " %s%s:%d: ",
log_levels[log_level], date_time, millis, pid,
(context == NULL ? "" : context),
func_name, line_num);