Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bbb2b10

Browse files
committed
fix chinese messy code in nslog
1 parent 14721f3 commit bbb2b10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mars/comm/objc/platform_comm.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ void ConsoleLog(const XLoggerInfo* _info, const char* _log)
193193
snprintf(log, sizeof(log), "[%s][%s][%s, %s, %d][%s", levelStrings[_info->level], NULL == _info->tag ? "" : _info->tag, file_name, strFuncName, _info->line, _log);
194194

195195

196-
NSLog(@"%s", log);
196+
NSLog(@"%@", [NSString stringWithUTF8String:log]);
197197
}
198198

199199
bool isNetworkConnected()

0 commit comments

Comments
 (0)