# HG changeset patch # User Sebastien Decugis # Date 1368444497 -28800 # Node ID caae38f15dfe80c6339f3336a115eccdda20e96a # Parent 5da2ea1585a1133a0e5df84f200fe9158b96e470 Refine mapping of the old levels for traces diff -r 5da2ea1585a1 -r caae38f15dfe include/freeDiameter/libfdproto.h --- a/include/freeDiameter/libfdproto.h Mon May 13 19:18:09 2013 +0800 +++ b/include/freeDiameter/libfdproto.h Mon May 13 19:28:17 2013 +0800 @@ -484,9 +484,10 @@ /* old macro for traces. To be replaced by appropriate LOG_* macros. */ # define TRACE_DEBUG(oldlevel, format,args... ) { \ if (TRACE_BOOL(oldlevel)) { \ - if (oldlevel == NONE) { LOG_E(format,##args); } \ - else if (oldlevel == INFO) { LOG_N(format,##args); } \ - else { LOG_D(format,##args); } \ + if (oldlevel <= NONE) { LOG_E(format,##args); } \ + else if (oldlevel <= INFO) { LOG_N(format,##args); } \ + else if (oldlevel <= FULL) { LOG_D(format,##args); } \ + else { LOG_A(format,##args); } \ } } /* the following macro must be replaced with LOG_E or LOG_F */