Changeset 1407:d4a4ab5239c7 in freeDiameter for include/freeDiameter/libfdproto.h
- Timestamp:
- Feb 18, 2020, 3:01:07 PM (4 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/freeDiameter/libfdproto.h
r1393 r1407 271 271 #define FD_LOG_ANNOYING 0 /* very verbose loops and such "overkill" traces. Only active when the framework is compiled in DEBUG mode. */ 272 272 #define FD_LOG_DEBUG 1 /* Get a detailed sense of what is going on in the framework. Use this level for normal debug */ 273 #define FD_LOG_INFO 2 /* Informational execution states */ 273 274 #define FD_LOG_NOTICE 3 /* Normal execution states worth noting */ 274 275 #define FD_LOG_ERROR 5 /* Recoverable or expected error conditions */ … … 330 331 #define LOG_D(format,args... ) \ 331 332 LOG(FD_LOG_DEBUG, format, ##args) 333 334 /* Report an info message */ 335 #define LOG_I(format,args... ) \ 336 LOG(FD_LOG_INFO, format,##args) 332 337 333 338 /* Report a normal message that is useful for normal admin monitoring */ … … 517 522 if ((__l__ = TRACE_BOOL(oldlevel))) { \ 518 523 if (oldlevel <= NONE) { LOG_E(format,##args); } \ 519 else if (oldlevel <= INFO) { LOG_ N(format,##args); } \524 else if (oldlevel <= INFO) { LOG_I(format,##args); } \ 520 525 else if (__l__ == 2) { LOG_N(format,##args); } \ 521 526 else if (oldlevel <= FULL) { LOG_D(format,##args); } \ … … 596 601 #ifdef STRIP_DEBUG_CODE 597 602 #undef LOG_D 603 #undef LOG_I 598 604 #undef LOG_N 599 605 #undef LOG_E … … 602 608 603 609 #define LOG_D(format,args... ) /* noop */ 610 #define LOG_I(format,args...) fd_log(FD_LOG_INFO, format, ## args) 604 611 #define LOG_N(format,args...) fd_log(FD_LOG_NOTICE, format, ## args) 605 612 #define LOG_E(format,args...) fd_log(FD_LOG_ERROR, format, ## args)
Note: See TracChangeset
for help on using the changeset viewer.