mirror of https://github.com/FreeRDP/FreeRDP
Fixed missing NULL checks in proxy logger macro
This commit is contained in:
parent
4463e5eda9
commit
c9effaa6e8
|
@ -37,16 +37,20 @@
|
|||
|
||||
/* log macros that prepends session id and function name tp the log message */
|
||||
#define PROXY_LOG_INFO(_tag, _context, _format, ...) \
|
||||
WLog_INFO(TAG, "[SessionID=%s][%s]: " _format, _context->pdata->session_id, __FUNCTION__, \
|
||||
WLog_INFO(TAG, "[SessionID=%s][%s]: " _format, \
|
||||
(_context && _context->pdata) ? _context->pdata->session_id : "null", __FUNCTION__, \
|
||||
##__VA_ARGS__)
|
||||
#define PROXY_LOG_ERR(_tag, _context, _format, ...) \
|
||||
WLog_ERR(TAG, "[SessionID=%s][%s]: " _format, _context->pdata->session_id, __FUNCTION__, \
|
||||
WLog_ERR(TAG, "[SessionID=%s][%s]: " _format, \
|
||||
(_context && _context->pdata) ? _context->pdata->session_id : "null", __FUNCTION__, \
|
||||
##__VA_ARGS__)
|
||||
#define PROXY_LOG_DBG(_tag, _context, _format, ...) \
|
||||
WLog_DBG(TAG, "[SessionID=%s][%s]: " _format, _context->pdata->session_id, __FUNCTION__, \
|
||||
WLog_DBG(TAG, "[SessionID=%s][%s]: " _format, \
|
||||
(_context && _context->pdata) ? _context->pdata->session_id : "null", __FUNCTION__, \
|
||||
##__VA_ARGS__)
|
||||
#define PROXY_LOG_WARN(_tag, _context, _format, ...) \
|
||||
WLog_WARN(TAG, "[SessionID=%s][%s]: " _format, _context->pdata->session_id, __FUNCTION__, \
|
||||
WLog_WARN(TAG, "[SessionID=%s][%s]: " _format, \
|
||||
(_context && _context->pdata) ? _context->pdata->session_id : "null", __FUNCTION__, \
|
||||
##__VA_ARGS__)
|
||||
|
||||
#endif /* FREERDP_SERVER_PROXY_LOG_H */
|
||||
|
|
Loading…
Reference in New Issue