mirror of
https://gitee.com/openharmony/startup_init
synced 2024-11-30 13:51:00 +00:00
refactor: code refine for `InitLog'
Signed-off-by: Neil Chen <jingsi.chen@petalmail.com>
This commit is contained in:
parent
a856c2c15a
commit
3636a842d5
@ -127,8 +127,6 @@ INIT_LOCAL_API void InitLog(int logLevel, unsigned int domain, const char *tag,
|
||||
if (vsnprintf_s(tmpFmt, sizeof(tmpFmt), sizeof(tmpFmt) - 1, fmt, vargs) == -1) {
|
||||
tmpFmt[sizeof(tmpFmt) - 2] = '\n'; // 2 add \n to tail
|
||||
tmpFmt[sizeof(tmpFmt) - 1] = '\0';
|
||||
PrintLog(logLevel, domain, tag, tmpFmt);
|
||||
return;
|
||||
}
|
||||
PrintLog(logLevel, domain, tag, tmpFmt);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user