show process name on all platforms
This commit is contained in:
parent
8d264cd602
commit
7a8e90e1a2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue