diff options
| author | 2016-10-24 15:59:34 +0000 | |
|---|---|---|
| committer | 2016-10-24 15:59:34 +0000 | |
| commit | 5aad37e70c665000f03591501fbaf21855c67105 (patch) | |
| tree | 9c2b4deced342dd26a734856bceb6f08d3242fc6 | |
| parent | 77fc19fa8ebd0cb96ba66281f281e9f496c9daa2 (diff) | |
| parent | 9c0ea2d1cd63ec0ee197108d41b83153056baba6 (diff) | |
Merge "PdfEditor: define LOG_TAG" am: a3bb8e3cc7
am: 9c0ea2d1cd
Change-Id: I61d351dd5b83e598fd59efbe9f414166a685fef7
| -rw-r--r-- | core/jni/android/graphics/pdf/PdfEditor.cpp | 17 |
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 0468b644862d..ac82457c249a 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 "jni.h" #include "JNIHelp.h" @@ -29,11 +38,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 { @@ -139,8 +143,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; |