mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-12 16:32:01 -05:00
pwd-plugin: fix slapi log target in logging functions
This commit is contained in:
1 parent
33802ab712
commit
79c39339da
1 file changed
+7
-12
@@ -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")
|
||||
|
||||
|
||||
Reference in new issue
Block a user