Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df1d03e5 authored by Mark Salyzyn's avatar Mark Salyzyn Committed by Gerrit Code Review
Browse files

Merge "logcat: do not assign 0 or NULL to global variables"

parents 3d0a87bd c6d6652d
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -69,19 +69,19 @@ namespace android {

/* Global Variables */

static const char * g_outputFileName = NULL;
static const char * g_outputFileName;
// 0 means "no log rotation"
static size_t g_logRotateSizeKBytes = 0;
static size_t g_logRotateSizeKBytes;
// 0 means "unbounded"
static size_t g_maxRotatedLogs = DEFAULT_MAX_ROTATED_LOGS;
static int g_outFD = -1;
static size_t g_outByteCount = 0;
static int g_printBinary = 0;
static int g_devCount = 0;                              // >1 means multiple
static size_t g_outByteCount;
static int g_printBinary;
static int g_devCount;                              // >1 means multiple
static pcrecpp::RE* g_regex;
// 0 means "infinite"
static size_t g_maxCount = 0;
static size_t g_printCount = 0;
static size_t g_maxCount;
static size_t g_printCount;

__noreturn static void logcat_panic(bool showHelp, const char *fmt, ...) __printflike(2,3);