commit b6ac0d3606b6c6348cf2f250fc3b37189b023031 from: Omar Polo via: Thomas Adam date: Mon Feb 20 16:18:17 2023 UTC gitconfig.c: fix printing of debugging logs all the othe LOG_DBG calls assume \n is implicit (like with err(3)), so remove the only explicit \n and make log_debug printing a newline too. commit - 68ce777164047c16f461f8e53b9a6d4aa2e26efe commit + b6ac0d3606b6c6348cf2f250fc3b37189b023031 blob - 24cc3489c343a5616f276ada4b0801cd5115dacd blob + 5f83dafcb51d4b45ea35cb4f759acdc55750a503 --- lib/gitconfig.c +++ lib/gitconfig.c @@ -69,6 +69,7 @@ log_debug(int cls, int level, const char *fmt, ...) va_start(ap, fmt); vfprintf(stderr, fmt, ap); va_end(ap); + putc('\n', stderr); } #endif @@ -181,7 +182,7 @@ conf_set_now(struct got_gitconfig *conf, char *section if (!is_default) LOG_DBG((LOG_MISC, 95, "conf_set_now: duplicate tag [%s]:%s, " - "ignoring...\n", section, tag)); + "ignoring...", section, tag)); return 1; } node = calloc(1, sizeof *node);