From 7a8e90e1a2fe37a9df694cfeecc0de78e943f679 Mon Sep 17 00:00:00 2001 From: Ivan Tivonenko Date: Thu, 13 Jan 2022 10:12:36 +0200 Subject: [PATCH] show process name on all platforms --- lib/defines.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/defines.h b/lib/defines.h index aac552e3..600428fd 100644 --- a/lib/defines.h +++ b/lib/defines.h @@ -66,7 +66,7 @@ static const char *DBG_LVL_LIST[] ={"NONE", "FAIL", "ERROR", "WARN", "IN #if DEBUG >= DLVL_DEVEL #define DEBUG_MSG(lvl, msg, ...) \ if (Util::printDebugLevel >= lvl){\ - fprintf(stderr, "%s|MistProcess|%d|%s:%d|%s|" msg "\n", DBG_LVL_LIST[lvl], getpid(), __FILE__, \ + fprintf(stderr, "%s|%s|%d|%s:%d|%s|" msg "\n", DBG_LVL_LIST[lvl], getprogname(), getpid(), __FILE__, \ __LINE__, Util::streamName, ##__VA_ARGS__); \ } #else