summaryrefslogtreecommitdiffstats
path: root/core/jni/android_database_SQLiteQuery.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/jni/android_database_SQLiteQuery.cpp')
-rw-r--r--core/jni/android_database_SQLiteQuery.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/jni/android_database_SQLiteQuery.cpp b/core/jni/android_database_SQLiteQuery.cpp
index ea4200a..da7ccf0 100644
--- a/core/jni/android_database_SQLiteQuery.cpp
+++ b/core/jni/android_database_SQLiteQuery.cpp
@@ -122,7 +122,7 @@ static CopyRowResult copyRow(JNIEnv* env, CursorWindow* window,
LOG_WINDOW("%d,%d is NULL", startPos + addedRows, i);
} else {
// Unknown data
- LOGE("Unknown column type when filling database window");
+ ALOGE("Unknown column type when filling database window");
throw_sqlite3_exception(env, "Unknown column type when filling window");
result = CPR_ERROR;
break;
@@ -153,7 +153,7 @@ static jlong nativeFillWindow(JNIEnv* env, jclass clazz, jint databasePtr,
startPos = requiredPos;
int err = sqlite3_bind_int(statement, offsetParam, startPos);
if (err != SQLITE_OK) {
- LOGE("Unable to bind offset position, offsetParam = %d", offsetParam);
+ ALOGE("Unable to bind offset position, offsetParam = %d", offsetParam);
throw_sqlite3_exception(env, database);
return 0;
}
@@ -167,7 +167,7 @@ static jlong nativeFillWindow(JNIEnv* env, jclass clazz, jint databasePtr,
int numColumns = sqlite3_column_count(statement);
status_t status = window->setNumColumns(numColumns);
if (status) {
- LOGE("Failed to change column count from %d to %d", window->getNumColumns(), numColumns);
+ ALOGE("Failed to change column count from %d to %d", window->getNumColumns(), numColumns);
jniThrowException(env, "java/lang/IllegalStateException", "numColumns mismatch");
return 0;
}
@@ -216,7 +216,7 @@ static jlong nativeFillWindow(JNIEnv* env, jclass clazz, jint databasePtr,
// The table is locked, retry
LOG_WINDOW("Database locked, retrying");
if (retryCount > 50) {
- LOGE("Bailing on database busy retry");
+ ALOGE("Bailing on database busy retry");
throw_sqlite3_exception(env, database, "retrycount exceeded");
gotException = true;
} else {
@@ -237,7 +237,7 @@ static jlong nativeFillWindow(JNIEnv* env, jclass clazz, jint databasePtr,
// Report the total number of rows on request.
if (startPos > totalRows) {
- LOGE("startPos %d > actual rows %d", startPos, totalRows);
+ ALOGE("startPos %d > actual rows %d", startPos, totalRows);
}
jlong result = jlong(startPos) << 32 | jlong(totalRows);
return result;