diff options
| author | 2014-05-07 21:34:04 -0400 | |
|---|---|---|
| committer | 2014-05-07 21:34:04 -0400 | |
| commit | 505d984f163d3bce9254e7e5fdb949c8e764ec49 (patch) | |
| tree | bb8b736584d13338d2fbfbad5c630af65298a97f /src/common | |
| parent | removed unnecessary log message (diff) | |
| download | yuzu-505d984f163d3bce9254e7e5fdb949c8e764ec49.tar.gz yuzu-505d984f163d3bce9254e7e5fdb949c8e764ec49.tar.xz yuzu-505d984f163d3bce9254e7e5fdb949c8e764ec49.zip | |
logger fix for linux
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/log.h | 4 | ||||
| -rw-r--r-- | src/common/log_manager.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/common/log.h b/src/common/log.h index de0629445..d95f51f56 100644 --- a/src/common/log.h +++ b/src/common/log.h | |||
| @@ -88,10 +88,10 @@ void GenericLog(LOGTYPES_LEVELS level, LOGTYPES_TYPE type, | |||
| 88 | ; | 88 | ; |
| 89 | 89 | ||
| 90 | #if defined LOGGING || defined _DEBUG || defined DEBUGFAST | 90 | #if defined LOGGING || defined _DEBUG || defined DEBUGFAST |
| 91 | #define MAX_LOGLEVEL LogTypes::LDEBUG | 91 | #define MAX_LOGLEVEL DEBUG_LEVEL |
| 92 | #else | 92 | #else |
| 93 | #ifndef MAX_LOGLEVEL | 93 | #ifndef MAX_LOGLEVEL |
| 94 | #define MAX_LOGLEVEL LogTypes::LWARNING | 94 | #define MAX_LOGLEVEL WARNING_LEVEL |
| 95 | #endif // loglevel | 95 | #endif // loglevel |
| 96 | #endif // logging | 96 | #endif // logging |
| 97 | 97 | ||
diff --git a/src/common/log_manager.cpp b/src/common/log_manager.cpp index aec2636ec..80fd473b9 100644 --- a/src/common/log_manager.cpp +++ b/src/common/log_manager.cpp | |||
| @@ -147,7 +147,7 @@ LogContainer::LogContainer(const char* shortName, const char* fullName, bool ena | |||
| 147 | { | 147 | { |
| 148 | strncpy(m_fullName, fullName, 128); | 148 | strncpy(m_fullName, fullName, 128); |
| 149 | strncpy(m_shortName, shortName, 32); | 149 | strncpy(m_shortName, shortName, 32); |
| 150 | m_level = MAX_LOGLEVEL; | 150 | m_level = (LogTypes::LOG_LEVELS)MAX_LOGLEVEL; |
| 151 | } | 151 | } |
| 152 | 152 | ||
| 153 | // LogContainer | 153 | // LogContainer |