commit cd0aa8caa26478b2cb3c60e889894de02e0eb921 from: Omar Polo date: Sat Feb 18 17:37:58 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 - fee52bbff055c2853bc5f657f511f4851338a19a commit + cd0aa8caa26478b2cb3c60e889894de02e0eb921 blob - 051d4280aa3dc2e52ca93a72e5ada64c8ae4b865 blob + 4b5de6124b792fc8fcfae5babf81e657a387f457 --- lib/gitconfig.c +++ lib/gitconfig.c @@ -67,6 +67,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 @@ -179,7 +180,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);