From 121ab7001b3d818f7e7cf3cd4a95bcb3453b44e2 Mon Sep 17 00:00:00 2001 From: Mark Salyzyn Date: Fri, 7 Oct 2016 12:13:43 -0700 Subject: [PATCH] PdfEditor: define LOG_TAG general cleanup of logging Test: compile Bug: 31992412 Change-Id: Ie2ec5a223bbb92e902bf6914100281b6d84500e3 --- core/jni/android/graphics/pdf/PdfEditor.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/core/jni/android/graphics/pdf/PdfEditor.cpp b/core/jni/android/graphics/pdf/PdfEditor.cpp index d2d39cd0b286e..9deb1259f91b5 100644 --- a/core/jni/android/graphics/pdf/PdfEditor.cpp +++ b/core/jni/android/graphics/pdf/PdfEditor.cpp @@ -13,6 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +#define LOG_TAG "PdfEditor" + +#include +#include + +#include + +#include +#include #include "jni.h" #include "JNIHelp.h" @@ -29,11 +38,6 @@ #include "SkMatrix.h" #include -#include -#include -#include -#include -#include namespace android { @@ -142,8 +146,7 @@ static bool writeAllBytes(const int fd, const void* buffer, const size_t byteCou if (errno == EINTR) { continue; } - __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, - "Error writing to buffer: %d", errno); + ALOGE("Error writing to buffer: %d", errno); return false; } remainingBytes -= writtenByteCount;