Print dbpath at error log when failed to open db 95/137095/2
authorSangyoon Jang <jeremy.jang@samsung.com>
Tue, 4 Jul 2017 10:11:25 +0000 (19:11 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Tue, 4 Jul 2017 10:41:28 +0000 (10:41 +0000)
Change-Id: Idb56b6c4081eee9a7c0db8f3ffbc25efbd8256d5
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/pkgmgrinfo_appinfo.c
src/pkgmgrinfo_pkginfo.c

index ed529f7..d4f9dc5 100644 (file)
@@ -510,7 +510,7 @@ static int _appinfo_get_applications(uid_t db_uid, uid_t uid,
 
        ret = __open_db(dbpath, &db, SQLITE_OPEN_READONLY);
        if (ret != SQLITE_OK) {
-               _LOGE("failed to open db: %d", ret);
+               _LOGE("failed to open db(%s): %d", dbpath, ret);
                free(dbpath);
                return PMINFO_R_ERROR;
        }
index a9ba8db..413b566 100644 (file)
@@ -385,7 +385,7 @@ static int _pkginfo_get_packages(uid_t uid, const char *locale,
 
        ret = __open_db(dbpath, &db, SQLITE_OPEN_READONLY);
        if (ret != SQLITE_OK) {
-               _LOGD("failed to open db: %d", ret);
+               _LOGD("failed to open db(%s): %d", dbpath, ret);
                free(dbpath);
                return PMINFO_R_ERROR;
        }