Print error message 26/217726/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 13 Nov 2019 23:56:09 +0000 (08:56 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 13 Nov 2019 23:56:09 +0000 (08:56 +0900)
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>
src/module.c

index b66e772c2cd3988a783b3dce7e7758bb26ff2c2e..10450c25b7cabf3c57cab032c85372058a5fde5a 100644 (file)
@@ -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;
 }