From 0ae07b465567400d1a7f9bcbc56595294bd97481 Mon Sep 17 00:00:00 2001 From: Robert Theis Date: Sun, 31 May 2015 18:18:11 -0700 Subject: [PATCH] Minor changes to log messages --- .../jni/com_googlecode_leptonica_android/readfile.cpp | 8 ++++---- .../jni/com_googlecode_leptonica_android/writefile.cpp | 2 +- tess-two/src/com/googlecode/leptonica/android/Box.java | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tess-two/jni/com_googlecode_leptonica_android/readfile.cpp b/tess-two/jni/com_googlecode_leptonica_android/readfile.cpp index 8fc0ab77d..9e42f9262 100644 --- a/tess-two/jni/com_googlecode_leptonica_android/readfile.cpp +++ b/tess-two/jni/com_googlecode_leptonica_android/readfile.cpp @@ -58,7 +58,7 @@ jlong Java_com_googlecode_leptonica_android_ReadFile_nativeReadBytes8(JNIEnv *en pixGetDimensions(pix, &w, &h, &d); - LOGE("Created image width w=%d, h=%d, d=%d", w, h, d); + LOGI("Created image with w=%d, h=%d, d=%d", w, h, d); return (jlong) pix; } @@ -118,17 +118,17 @@ jlong Java_com_googlecode_leptonica_android_ReadFile_nativeReadBitmap(JNIEnv *en int ret; if ((ret = AndroidBitmap_getInfo(env, bitmap, &info)) < 0) { - LOGE("AndroidBitmap_getInfo() failed ! error=%d", ret); + LOGE("AndroidBitmap_getInfo() failed! error=%d", ret); return (jlong) NULL; } if (info.format != ANDROID_BITMAP_FORMAT_RGBA_8888) { - LOGE("Bitmap format is not RGBA_8888 !"); + LOGE("Bitmap format is not RGBA_8888!"); return (jlong) NULL; } if ((ret = AndroidBitmap_lockPixels(env, bitmap, &pixels)) < 0) { - LOGE("AndroidBitmap_lockPixels() failed ! error=%d", ret); + LOGE("AndroidBitmap_lockPixels() failed! error=%d", ret); return (jlong) NULL; } diff --git a/tess-two/jni/com_googlecode_leptonica_android/writefile.cpp b/tess-two/jni/com_googlecode_leptonica_android/writefile.cpp index 28464bf70..2dd59b2c2 100644 --- a/tess-two/jni/com_googlecode_leptonica_android/writefile.cpp +++ b/tess-two/jni/com_googlecode_leptonica_android/writefile.cpp @@ -114,7 +114,7 @@ jboolean Java_com_googlecode_leptonica_android_WriteFile_nativeWriteBitmap(JNIEn l_int32 dstBpl = info.stride; l_int32 srcBpl = 4 * pixGetWpl(pixs); - LOGE("Writing 32bpp RGBA bitmap (w=%d, h=%d, stride=%d) from %dbpp Pix (wpl=%d)", info.width, + LOGI("Writing 32bpp RGBA bitmap (w=%d, h=%d, stride=%d) from %dbpp Pix (wpl=%d)", info.width, info.height, info.stride, d, pixGetWpl(pixs)); for (int dy = 0; dy < info.height; dy++) { diff --git a/tess-two/src/com/googlecode/leptonica/android/Box.java b/tess-two/src/com/googlecode/leptonica/android/Box.java index f2d8a0d47..0eaed0e7f 100644 --- a/tess-two/src/com/googlecode/leptonica/android/Box.java +++ b/tess-two/src/com/googlecode/leptonica/android/Box.java @@ -120,7 +120,7 @@ public int getHeight() { * Returns an array containing the coordinates of this box. See INDEX_* * constants for indices. * - * @return an array of box oordinates + * @return an array of box coordinates */ public int[] getGeometry() { int[] geometry = new int[4];