From: terencehill Date: Wed, 28 Oct 2020 00:27:40 +0000 (+0100) Subject: Remove an extra new line prepended to LOG_INFO messages X-Git-Tag: xonotic-v0.8.5~709 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=56ef23431c51759117dc2bdf768a0b0d1180d4ec;p=xonotic%2Fxonotic-data.pk3dir.git Remove an extra new line prepended to LOG_INFO messages --- diff --git a/qcsrc/lib/log.qh b/qcsrc/lib/log.qh index 59bb70dd3..317fc8ded 100644 --- a/qcsrc/lib/log.qh +++ b/qcsrc/lib/log.qh @@ -71,9 +71,9 @@ string(string, string...) strcat1n = #115; #define LOG_INFOF(...) _LOG_INFO(sprintf(__VA_ARGS__)) #define _LOG_INFO(s) \ MACRO_BEGIN \ - if (autocvar_developer > 1) dprint(_LOG_HEADER("^5INFO")); \ + if (autocvar_developer > 1) dprint(strcat1n(_LOG_HEADER("^5INFO"), "\n")); \ string __s = s; \ - print("\n^7", __s); \ + print("^7", __s); \ /* TODO: unconditionally add a newline when possible */ \ if (str2chr(__s, strlen(__s) - 1) != '\n') { print("\n"); } \ MACRO_END