From 79c39339dae3d95db977bea153938bb2d7e98052 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 18 Oct 2010 10:13:44 -0400 Subject: pwd-plugin: fix slapi log target in logging functions --- daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'daemons/ipa-slapi-plugins/ipa-pwd-extop') diff --git a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h index cba48525..5b15622f 100644 --- a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h +++ b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h @@ -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") -- cgit