Print dbpath at error log when failed to open db
[platform/core/appfw/pkgmgr-info.git] / src / pkgmgrinfo_pkginfo.c
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;
        }