Fixed syslog stuff.

This commit is contained in:
lotodore
2007-10-24 23:24:57 +00:00
parent 9e180d01f3
commit dc74186b5a
+2 -2
View File
@@ -31,7 +31,7 @@
{ \ { \
std::ostringstream outStream; \ std::ostringstream outStream; \
outStream << e << std::endl; \ outStream << e << std::endl; \
syslog(LOG_ERR, "%s", outStream.str()); \ syslog(LOG_ERR, "%s", outStream.str().c_str()); \
} \ } \
while(false) while(false)
#define LOG_MSG(e) \ #define LOG_MSG(e) \
@@ -39,7 +39,7 @@
{ \ { \
std::ostringstream outStream; \ std::ostringstream outStream; \
outStream << e << std::endl; \ outStream << e << std::endl; \
syslog(LOG_INFO, "%s", outStream.str()); \ syslog(LOG_INFO, "%s", outStream.str().c_str()); \
} \ } \
while(false) while(false)
#endif #endif