Skip to content

Commit

Permalink
COMMON: Add kInfo LogMessageType.
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzie committed Jun 6, 2011
1 parent a809ac9 commit 6842227
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions backends/platform/android/android.cpp
Expand Up @@ -575,6 +575,10 @@ void OSystem_Android::addSysArchivesToSearchSet(Common::SearchSet &s,
void OSystem_Android::logMessage(LogMessageType::Type type,
const char *message) {
switch (type) {
case LogMessageType::kInfo:
__android_log_write(ANDROID_LOG_INFO, android_log_tag, message);
break;

case LogMessageType::kDebug:
__android_log_write(ANDROID_LOG_DEBUG, android_log_tag, message);
break;
Expand Down
2 changes: 1 addition & 1 deletion common/system.cpp
Expand Up @@ -79,7 +79,7 @@ void OSystem::fatalError() {
void OSystem::logMessage(LogMessageType::Type type, const char *message) {
FILE *output = 0;

if (type == LogMessageType::kDebug)
if (type == LogMessageType::kInfo || type == LogMessageType::kDebug)
output = stdout;
else
output = stderr;
Expand Down
1 change: 1 addition & 0 deletions common/system.h
Expand Up @@ -73,6 +73,7 @@ struct TimeDate {
namespace LogMessageType {

enum Type {
kInfo,
kError,
kWarning,
kDebug
Expand Down

0 comments on commit 6842227

Please sign in to comment.