summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung-jae Park <nicesj.park@samsung.com>2013-10-21 08:06:34 (GMT)
committerSung-jae Park <nicesj.park@samsung.com>2013-10-21 08:06:34 (GMT)
commit6831506c9d0d4e70745fdeedb99691e79040996a (patch)
treec16f4df8a63d2c38bda32132b171aa5853151885
parent30933b77ac8371211d92e4649b355fa4adee4687 (diff)
downloadlivebox-service-tizen_2.2.zip
livebox-service-tizen_2.2.tar.gz
livebox-service-tizen_2.2.tar.bz2
Change-Id: Ic6c3a3feb70047616a0514f5bedda05e7a65df2d
-rw-r--r--packaging/liblivebox-service.spec2
-rw-r--r--src/livebox-service.c24
2 files changed, 13 insertions, 13 deletions
diff --git a/packaging/liblivebox-service.spec b/packaging/liblivebox-service.spec
index 9dcf6bf..01a2f79 100644
--- a/packaging/liblivebox-service.spec
+++ b/packaging/liblivebox-service.spec
@@ -1,5 +1,5 @@
Name: liblivebox-service
-Version: 0.5.6
+Version: 0.5.7
Release: 1
License: Flora
Summary: Service API for gathering installed livebox information
diff --git a/src/livebox-service.c b/src/livebox-service.c
index bd3da62..e4b581a 100644
--- a/src/livebox-service.c
+++ b/src/livebox-service.c
@@ -2201,27 +2201,27 @@ EAPI char *livebox_service_lb_script_path(const char *pkgid)
ret = sqlite3_prepare_v2(handle, "SELECT pkgmap.appid, provider.box_src FROM provider, pkgmap WHERE pkgmap.pkgid = ? AND provider.pkgid = ?", -1, &stmt, NULL);
if (ret != SQLITE_OK) {
- ErrPrint("Error: %s\n", sqlite3_errmsg(handle));
+ ErrPrint("Error: %s, pkgid(%s), ret(%d)\n", sqlite3_errmsg(handle), pkgid, ret);
goto out;
}
ret = sqlite3_bind_text(stmt, 1, pkgid, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
- ErrPrint("Error: %s\n", sqlite3_errmsg(handle));
+ ErrPrint("Error: %s, pkgid(%s), ret(%d)\n", sqlite3_errmsg(handle), pkgid, ret);
sqlite3_finalize(stmt);
goto out;
}
ret = sqlite3_bind_text(stmt, 2, pkgid, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
- ErrPrint("Error: %s\n", sqlite3_errmsg(handle));
+ ErrPrint("Error: %s, pkgid(%s), ret(%d)\n", sqlite3_errmsg(handle), pkgid, ret);
sqlite3_finalize(stmt);
goto out;
}
ret = sqlite3_step(stmt);
if (ret != SQLITE_ROW) {
- ErrPrint("Error: %s\n", sqlite3_errmsg(handle));
+ ErrPrint("Error: %s, pkgid(%s), ret(%d)\n", sqlite3_errmsg(handle), pkgid, ret);
sqlite3_reset(stmt);
sqlite3_finalize(stmt);
goto out;
@@ -2229,7 +2229,7 @@ EAPI char *livebox_service_lb_script_path(const char *pkgid)
appid = (char *)sqlite3_column_text(stmt, 0);
if (!appid || !strlen(appid)) {
- ErrPrint("Invalid appid : %s\n", sqlite3_errmsg(handle));
+ ErrPrint("Invalid appid : %s, pkgid(%s)\n", sqlite3_errmsg(handle), pkgid);
sqlite3_reset(stmt);
sqlite3_finalize(stmt);
goto out;
@@ -2237,7 +2237,7 @@ EAPI char *livebox_service_lb_script_path(const char *pkgid)
lb_src = (char *)sqlite3_column_text(stmt, 1);
if (!lb_src || !strlen(lb_src)) {
- ErrPrint("No records for lb src : %s\n", sqlite3_errmsg(handle));
+ ErrPrint("No records for lb src : %s, pkgid(%s), appid(%s)\n", sqlite3_errmsg(handle), pkgid, appid);
sqlite3_reset(stmt);
sqlite3_finalize(stmt);
goto out;
@@ -2334,27 +2334,27 @@ EAPI char *livebox_service_pd_script_path(const char *pkgid)
ret = sqlite3_prepare_v2(handle, "SELECT pkgmap.appid, provider.pd_src FROM provider, pkgmap WHERE provider.pkgid = ? AND pkgmap.pkgid = ?", -1, &stmt, NULL);
if (ret != SQLITE_OK) {
- ErrPrint("Error: %s\n", sqlite3_errmsg(handle));
+ ErrPrint("Error: %s pkgid(%s) ret(%d)\n", sqlite3_errmsg(handle), pkgid, ret);
goto out;
}
ret = sqlite3_bind_text(stmt, 1, pkgid, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
- ErrPrint("Error: %s\n", sqlite3_errmsg(handle));
+ ErrPrint("Error: %s pkgid(%s) ret(%d)\n", sqlite3_errmsg(handle), pkgid, ret);
sqlite3_finalize(stmt);
goto out;
}
ret = sqlite3_bind_text(stmt, 2, pkgid, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
- ErrPrint("Error: %s\n", sqlite3_errmsg(handle));
+ ErrPrint("Error: %s pkgid(%s) ret(%d)\n", sqlite3_errmsg(handle), pkgid, ret);
sqlite3_finalize(stmt);
goto out;
}
ret = sqlite3_step(stmt);
if (ret != SQLITE_ROW) {
- ErrPrint("Error: %s\n", sqlite3_errmsg(handle));
+ ErrPrint("Error: %s pkgid(%s) ret(%d)\n", sqlite3_errmsg(handle), pkgid, ret);
sqlite3_reset(stmt);
sqlite3_finalize(stmt);
goto out;
@@ -2362,7 +2362,7 @@ EAPI char *livebox_service_pd_script_path(const char *pkgid)
appid = (char *)sqlite3_column_text(stmt, 0);
if (!appid || !strlen(appid)) {
- ErrPrint("Error: %s\n", sqlite3_errmsg(handle));
+ ErrPrint("Error: %s pkgid(%s)\n", sqlite3_errmsg(handle), pkgid);
sqlite3_reset(stmt);
sqlite3_finalize(stmt);
goto out;
@@ -2370,7 +2370,7 @@ EAPI char *livebox_service_pd_script_path(const char *pkgid)
pd_src = (char *)sqlite3_column_text(stmt, 1);
if (!pd_src || !strlen(pd_src)) {
- ErrPrint("Error: %s\n", sqlite3_errmsg(handle));
+ ErrPrint("Error: %s pkgid(%s) appid(%s)\n", sqlite3_errmsg(handle), pkgid, appid);
sqlite3_reset(stmt);
sqlite3_finalize(stmt);
goto out;