summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mark Salyzyn <salyzyn@google.com> 2016-10-24 16:12:43 +0000
committer android-build-merger <android-build-merger@google.com> 2016-10-24 16:12:43 +0000
commitfa4c311438dc174df7acac822a9aa91ae91e9879 (patch)
tree7f2be7e8f15e2470fc1062d0fc4af6fdddfd4b76
parent03db8e4b58342d5ada64f29b049cf30da0ba9369 (diff)
parent5be5a41170aadc955fa03537f52235922f837be2 (diff)
Merge "PdfEditor: define LOG_TAG" am: a3bb8e3cc7 am: 9c0ea2d1cd am: 5aad37e70c
am: 5be5a41170 Change-Id: Ia7ee2481592d3df55c3fda94cc1abfb4ea4a95cc
-rw-r--r--core/jni/android/graphics/pdf/PdfEditor.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/core/jni/android/graphics/pdf/PdfEditor.cpp b/core/jni/android/graphics/pdf/PdfEditor.cpp
index b5960dd3d318..b142925cd217 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 <sys/types.h>
+#include <unistd.h>
+
+#include <vector>
+
+#include <android/log.h>
+#include <utils/Log.h>
#include "PdfUtils.h"
@@ -30,11 +39,6 @@
#include "SkMatrix.h"
#include <core_jni_helpers.h>
-#include <vector>
-#include <utils/Log.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <unistd.h>
namespace android {
@@ -77,8 +81,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;