Loading libutils/Printer.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -47,10 +47,16 @@ void Printer::printFormatLine(const char* format, ...) { va_start(arglist, format); char* formattedString; #ifndef USE_MINGW if (vasprintf(&formattedString, format, arglist) < 0) { // returns -1 on error ALOGE("%s: Failed to format string", __FUNCTION__); return; } #else return; #endif va_end(arglist); printLine(formattedString); Loading Loading @@ -113,7 +119,9 @@ void FdPrinter::printLine(const char* string) { return; } #ifndef USE_MINGW fdprintf(mFd, mFormatString, mPrefix, string); #endif } /* Loading libutils/ProcessCallStack.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -140,6 +140,7 @@ void ProcessCallStack::update(int32_t maxDepth) { clear(); // Get current time. #ifndef USE_MINGW { time_t t = time(NULL); struct tm tm; Loading Loading @@ -193,6 +194,7 @@ void ProcessCallStack::update(int32_t maxDepth) { ALOGE("%s: Failed to readdir from %s (errno = %d, '%s')", __FUNCTION__, PATH_SELF_TASK, -code, strerror(code)); } #endif closedir(dp); } Loading Loading
libutils/Printer.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -47,10 +47,16 @@ void Printer::printFormatLine(const char* format, ...) { va_start(arglist, format); char* formattedString; #ifndef USE_MINGW if (vasprintf(&formattedString, format, arglist) < 0) { // returns -1 on error ALOGE("%s: Failed to format string", __FUNCTION__); return; } #else return; #endif va_end(arglist); printLine(formattedString); Loading Loading @@ -113,7 +119,9 @@ void FdPrinter::printLine(const char* string) { return; } #ifndef USE_MINGW fdprintf(mFd, mFormatString, mPrefix, string); #endif } /* Loading
libutils/ProcessCallStack.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -140,6 +140,7 @@ void ProcessCallStack::update(int32_t maxDepth) { clear(); // Get current time. #ifndef USE_MINGW { time_t t = time(NULL); struct tm tm; Loading Loading @@ -193,6 +194,7 @@ void ProcessCallStack::update(int32_t maxDepth) { ALOGE("%s: Failed to readdir from %s (errno = %d, '%s')", __FUNCTION__, PATH_SELF_TASK, -code, strerror(code)); } #endif closedir(dp); } Loading