Skip to content

Commit

Permalink
Correct braces in debug macros which may cause a SEGV.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed May 13, 2017
1 parent c7e54a5 commit d6049c0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/XrdPosix/XrdPosixTrace.hh
Expand Up @@ -36,13 +36,12 @@

#include "XrdSys/XrdSysTrace.hh"

#define DMSG(x,y) XrdPosixGlobals::Trace.Beg(0, x) <<y; \
XrdPosixGlobals::Trace.End()
#define DMSG(x,y) {XrdPosixGlobals::Trace.Beg(0, x) <<y; \
XrdPosixGlobals::Trace.End();}

#define DEBUGON (XrdPosixGlobals::Trace.What & TRACE_Debug)

#define DEBUG(y) if (XrdPosixGlobals::Trace.What & TRACE_Debug) \
{DMSG(epname,y);}
#define DEBUG(y) if (XrdPosixGlobals::Trace.What & TRACE_Debug) DMSG(epname,y)

#define EPNAME(x) static const char *epname = x

Expand Down

0 comments on commit d6049c0

Please sign in to comment.