summaryrefslogtreecommitdiffstats
path: root/media/mtp/SqliteDatabase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'media/mtp/SqliteDatabase.cpp')
-rw-r--r--media/mtp/SqliteDatabase.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/media/mtp/SqliteDatabase.cpp b/media/mtp/SqliteDatabase.cpp
index e115630..1de3a41 100644
--- a/media/mtp/SqliteDatabase.cpp
+++ b/media/mtp/SqliteDatabase.cpp
@@ -14,6 +14,9 @@
* limitations under the License.
*/
+#define LOG_TAG "SqliteDatabase"
+
+#include "MtpDebug.h"
#include "SqliteDatabase.h"
#include "SqliteStatement.h"
@@ -37,7 +40,7 @@ bool SqliteDatabase::open(const char* path, bool create) {
// SQLITE_OPEN_NOMUTEX?
int ret = sqlite3_open_v2(path, &mDatabaseHandle, flags, NULL);
if (ret) {
- fprintf(stderr, "could not open database\n");
+ LOGE("could not open database\n");
return false;
}
return true;