diff options
author | Hwankyu Jhun <h.jhun@samsung.com> | 2019-11-14 08:56:09 +0900 |
---|---|---|
committer | Hwankyu Jhun <h.jhun@samsung.com> | 2019-11-14 08:56:09 +0900 |
commit | 71f5f3477682329c88c5d2a3581e6fda29bb9faa (patch) | |
tree | 2fbb684c16ce86bab8c7cc1de9f140ff5b95614a /src/module.c | |
parent | 48bd5288ada17ae8bae6d8a27d8526a369667c6a (diff) | |
download | ui-gadget-1-71f5f3477682329c88c5d2a3581e6fda29bb9faa.tar.gz ui-gadget-1-71f5f3477682329c88c5d2a3581e6fda29bb9faa.tar.bz2 ui-gadget-1-71f5f3477682329c88c5d2a3581e6fda29bb9faa.zip |
Print error message
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>
Diffstat (limited to 'src/module.c')
-rw-r--r-- | src/module.c | 3 |
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; } |