X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fcontext.h;fp=citadel%2Fcontext.h;h=cde77f496f5b278c5f658a4a5aa60bd82da273aa;hp=4b450a416720bbc9cd0c9eb415a12415b50f5516;hb=1493fd8ff0de73d30336607b43b1c8113ffcffa2;hpb=931ed7a4e3bdf272f135b1cee2665cdea43ce7c2 diff --git a/citadel/context.h b/citadel/context.h index 4b450a416..cde77f496 100644 --- a/citadel/context.h +++ b/citadel/context.h @@ -212,13 +212,13 @@ static INLINE void become_session(CitContext *which_con) { extern int DebugSession; #define CONDBGLOG(LEVEL) if ((LEVEL != LOG_DEBUG) || (DebugSession != 0)) -#define CON_syslog(LEVEL, FORMAT, ...) \ - CONDBGLOG(LEVEL) syslog(LEVEL, \ - "Context: " FORMAT, __VA_ARGS__) +#define CON_syslog(LEVEL, FORMAT, ...) \ + CONDBGLOG(LEVEL) syslog(LEVEL, \ + "%s Context: " FORMAT, IOSTR, __VA_ARGS__) -#define CONM_syslog(LEVEL, FORMAT) \ - CONDBGLOG(LEVEL) syslog(LEVEL, \ - "Context: " FORMAT); +#define CONM_syslog(LEVEL, FORMAT) \ + CONDBGLOG(LEVEL) syslog(LEVEL, \ + "%s Context: " FORMAT, IOSTR); #endif /* CONTEXT_H */