Mercurial > hg > freeDiameter-dtls
comparison include/freeDiameter/libfdproto.h @ 1195:dcc467aeda12
Include source file information in ERROR logs
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Tue, 11 Jun 2013 14:03:36 +0800 |
parents | f40de74bd1c7 |
children | c38bb8b69c43 |
comparison
equal
deleted
inserted
replaced
1194:48759e3f7611 | 1195:dcc467aeda12 |
---|---|
517 else if (oldlevel <= FULL) { LOG_D(format,##args); } \ | 517 else if (oldlevel <= FULL) { LOG_D(format,##args); } \ |
518 else { LOG_A(format,##args); } \ | 518 else { LOG_A(format,##args); } \ |
519 } } | 519 } } |
520 | 520 |
521 /* the following macro must be replaced with LOG_E or LOG_F */ | 521 /* the following macro must be replaced with LOG_E or LOG_F */ |
522 # define TRACE_ERROR fd_log_error | 522 # define TRACE_ERROR LOG_E |
523 | 523 |
524 | 524 |
525 /* The following macros are missing the faillevel information, which indicates at what log level the error case should be displayed. */ | 525 /* The following macros are missing the faillevel information, which indicates at what log level the error case should be displayed. */ |
526 # define CHECK_SYS_DO( __call__, __fallback__ ) { \ | 526 # define CHECK_SYS_DO( __call__, __fallback__ ) { \ |
527 CHECK_PRELUDE(__call__); \ | 527 CHECK_PRELUDE(__call__); \ |