summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2019-11-13 23:56:09 (GMT)
committerHwankyu Jhun <h.jhun@samsung.com>2019-11-13 23:56:09 (GMT)
commit71f5f3477682329c88c5d2a3581e6fda29bb9faa (patch)
tree2fbb684c16ce86bab8c7cc1de9f140ff5b95614a
parent48bd5288ada17ae8bae6d8a27d8526a369667c6a (diff)
downloadui-gadget-1-71f5f3477682329c88c5d2a3581e6fda29bb9faa.zip
ui-gadget-1-71f5f3477682329c88c5d2a3581e6fda29bb9faa.tar.gz
ui-gadget-1-71f5f3477682329c88c5d2a3581e6fda29bb9faa.tar.bz2
Print error messagerefs/changes/26/217726/1
If calling access() is failed, ug prints error message using dlog with warning level. Change-Id: I461d3f0f8c75d40520b5f4a3c0858649d973f02d Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r--src/module.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/module.c b/src/module.c
index b66e772..10450c2 100644
--- a/src/module.c
+++ b/src/module.c
@@ -110,7 +110,8 @@ static int __file_exist(const char *path)
int ret;
ret = access(path, R_OK);
- LOGD("ug_file(%s) check %s", path, ret ? "fail" : "ok");
+ if (ret != 0)
+ LOGW("Failed to access %s. errno(%d)", path, errno);
return ret;
}