diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2014-07-05 21:26:18 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-07-05 21:26:18 -0700 |
commit | 3c503809a387e31402a4c84ef1a3909a7a1a3316 (patch) | |
tree | a38e73ddf9adc6b1992b7d788772b8508d2c5873 /ipanat | |
parent | d04888844375502319a48db2947a7ff1247e10fd (diff) | |
parent | 96deecd2546cae81e71bb66ec18e778f2549a714 (diff) | |
download | ipacfg-mgr-3c503809a387e31402a4c84ef1a3909a7a1a3316.tar.gz |
Merge "IPANAT: remove the syslog usage"
Diffstat (limited to 'ipanat')
-rw-r--r-- | ipanat/inc/ipa_nat_logi.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/ipanat/inc/ipa_nat_logi.h b/ipanat/inc/ipa_nat_logi.h index 0e1a5d1..5f79cc6 100644 --- a/ipanat/inc/ipa_nat_logi.h +++ b/ipanat/inc/ipa_nat_logi.h @@ -50,18 +50,15 @@ extern "C" #include <string.h> #include <syslog.h> -#define PERROR(fmt) printf("%s:%d %s()", __FILE__, __LINE__, __FUNCTION__);\ - perror(fmt); +#define PERROR(fmt) printf("%s:%d %s()", __FILE__, __LINE__, __FUNCTION__);\ + perror(fmt); -#define IPAERR(fmt, ...) syslog(LOG_ERR, "ERROR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\ - printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__); +#define IPAERR(fmt, ...) printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__); #ifdef DEBUG -#define IPADBG(fmt, ...) syslog(LOG_DEBUG, "%s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\ - printf("%s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__); +#define IPADBG(fmt, ...) printf("%s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__); -#define IPADUMP(fmt, ...) syslog(LOG_DEBUG, fmt, ##__VA_ARGS__);\ - printf(fmt, ##__VA_ARGS__); +#define IPADUMP(fmt, ...) printf(fmt, ##__VA_ARGS__); #else #define IPADBG(fmt, ...) |