Log license request and response
[ Merge of http://go/wvgerrit/119563 ] This also increases the max log size from 1024 to 5120 Bug: 181642154 Test: WV unit/integration tests Change-Id: Ifae90354dad1165f4d9fa3c9fe33a4dc14df1270
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
#endif
|
||||
|
||||
#define LOG_TAG "WVCdm"
|
||||
#define LOG_BUF_SIZE 1024
|
||||
#define LOG_BUF_SIZE 5120
|
||||
|
||||
#include "log.h"
|
||||
#include <hwbinder/IPCThreadState.h>
|
||||
@@ -83,7 +83,7 @@ void Log(const char* file, const char* function, int line, LogPriority level,
|
||||
const char* filename = strrchr(file, '/');
|
||||
filename = filename == nullptr ? file : filename + 1;
|
||||
|
||||
char buf[LOG_BUF_SIZE];
|
||||
static thread_local char buf[LOG_BUF_SIZE];
|
||||
int len =
|
||||
snprintf(buf, LOG_BUF_SIZE, "[%s(%d):%s] ", filename, line, function);
|
||||
if (len < 0) len = 0;
|
||||
|
||||
Reference in New Issue
Block a user