mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-26 16:16:31 -06:00
pwd-plugin: fix slapi log target in logging functions
This commit is contained in:
parent
33802ab712
commit
79c39339da
@ -71,22 +71,17 @@
|
||||
#define log_func discard_const(__func__)
|
||||
|
||||
#define LOG(fmt, ...) \
|
||||
do { \
|
||||
slapi_log_error(SLAPI_LOG_PLUGIN, IPAPWD_PLUGIN_NAME, \
|
||||
fmt, ##__VA_ARGS__); \
|
||||
} while (0)
|
||||
slapi_log_error(SLAPI_LOG_PLUGIN, \
|
||||
IPAPWD_PLUGIN_NAME, \
|
||||
fmt, ##__VA_ARGS__)
|
||||
|
||||
#define LOG_FATAL(fmt, ...) \
|
||||
do { \
|
||||
slapi_log_error(SLAPI_LOG_PLUGIN, log_func, \
|
||||
"[file %s, line %d]: " fmt, \
|
||||
__FILE__, __LINE__, ##__VA_ARGS__); \
|
||||
} while (0)
|
||||
slapi_log_error(SLAPI_LOG_FATAL, log_func, \
|
||||
"[file %s, line %d]: " fmt, \
|
||||
__FILE__, __LINE__, ##__VA_ARGS__)
|
||||
|
||||
#define LOG_TRACE(fmt, ...) \
|
||||
do { \
|
||||
slapi_log_error(SLAPI_LOG_PLUGIN, log_func, fmt, ##__VA_ARGS__); \
|
||||
} while (0)
|
||||
slapi_log_error(SLAPI_LOG_TRACE, log_func, fmt, ##__VA_ARGS__)
|
||||
|
||||
#define LOG_OOM() LOG_FATAL("Out of Memory!\n")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user