summaryrefslogtreecommitdiff
path: root/src/logger.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-01 14:53:41 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-01 14:53:41 +0300
commit39cf5c3a58e98b29eb7cfa0015b8e06458777fbc (patch)
treea89b6c1ef5b83d54ea819056d7f89d5013982c97 /src/logger.cpp
parentc287f54adf5418ec6d11d4b5bb091040d00390dc (diff)
downloadplus-39cf5c3a58e98b29eb7cfa0015b8e06458777fbc.tar.gz
plus-39cf5c3a58e98b29eb7cfa0015b8e06458777fbc.tar.bz2
plus-39cf5c3a58e98b29eb7cfa0015b8e06458777fbc.tar.xz
plus-39cf5c3a58e98b29eb7cfa0015b8e06458777fbc.zip
Rename LOG_ANDROID into SPECIALLOG.
Diffstat (limited to 'src/logger.cpp')
-rw-r--r--src/logger.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/logger.cpp b/src/logger.cpp
index 2c410abbe..433713760 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -42,12 +42,12 @@
#if defined(__ANDROID__) && defined(ANDROID_LOG)
#include <android/log.h>
-#define LOG_ANDROID(x) __android_log_print(ANDROID_LOG_INFO, "manaplus", x);
-#define DLOG_ANDROID(x) __android_log_print(ANDROID_LOG_VERBOSE, \
+#define SPECIALLOG(x) __android_log_print(ANDROID_LOG_INFO, "manaplus", x);
+#define DSPECIALLOG(x) __android_log_print(ANDROID_LOG_VERBOSE, \
"manaplus", x);
#else
-#define LOG_ANDROID(x)
-#define DLOG_ANDROID(x)
+#define SPECIALLOG(x)
+#define DSPECIALLOG(x)
#endif
#include "debug.h"
@@ -119,7 +119,7 @@ void Logger::dlog(const std::string &str)
// Print the log entry
std::stringstream timeStr;
DATESTREAM
- DLOG_ANDROID(str.c_str())
+ DSPECIALLOG(str.c_str())
if (mLogFile.is_open())
mLogFile << timeStr.str() << str << std::endl;
@@ -142,7 +142,7 @@ void Logger::dlog2(const std::string &str,
// Print the log entry
std::stringstream timeStr;
DATESTREAM
- DLOG_ANDROID(str.c_str())
+ DSPECIALLOG(str.c_str())
if (mLogFile.is_open())
{
@@ -198,7 +198,7 @@ void Logger::log1(const char *const buf)
// Print the log entry
std::stringstream timeStr;
DATESTREAM
- LOG_ANDROID(buf)
+ SPECIALLOG(buf)
if (mLogFile.is_open())
mLogFile << timeStr.str() << buf << std::endl;
@@ -232,7 +232,7 @@ void Logger::log(const char *const log_text, ...)
// Print the log entry
std::stringstream timeStr;
DATESTREAM
- LOG_ANDROID(buf)
+ SPECIALLOG(buf)
if (mLogFile.is_open())
mLogFile << timeStr.str() << buf << std::endl;
@@ -271,7 +271,7 @@ void Logger::log_r(const char *const log_text, ...)
// Print the log entry
std::stringstream timeStr;
DATESTREAM
- LOG_ANDROID(buf)
+ SPECIALLOG(buf)
if (mLogFile.is_open())
{