diff options
author | Simo Sorce <ssorce@redhat.com> | 2010-10-18 10:13:44 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2010-10-28 17:17:59 -0400 |
commit | 79c39339dae3d95db977bea153938bb2d7e98052 (patch) | |
tree | 5fd2103ce62b0cce62227b2e057f6a247032e51c /daemons/ipa-slapi-plugins | |
parent | 33802ab71262e01704d3342761215ea480354e88 (diff) | |
download | freeipa-79c39339dae3d95db977bea153938bb2d7e98052.tar.gz freeipa-79c39339dae3d95db977bea153938bb2d7e98052.tar.xz freeipa-79c39339dae3d95db977bea153938bb2d7e98052.zip |
pwd-plugin: fix slapi log target in logging functions
Diffstat (limited to 'daemons/ipa-slapi-plugins')
-rw-r--r-- | daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h index cba485256..5b15622fa 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") |