summaryrefslogtreecommitdiffstats
path: root/libutils/Printer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libutils/Printer.cpp')
-rw-r--r--libutils/Printer.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/libutils/Printer.cpp b/libutils/Printer.cpp
index b062ef0a7..ac729e05c 100644
--- a/libutils/Printer.cpp
+++ b/libutils/Printer.cpp
@@ -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);
@@ -113,7 +119,9 @@ void FdPrinter::printLine(const char* string) {
return;
}
+#ifndef USE_MINGW
fdprintf(mFd, mFormatString, mPrefix, string);
+#endif
}
/*