Printing "key doesn't exit" is not needed. Because, the purpose of the
function is checking whether the key exists or not.
Change-Id: I229c5878daa7f526a6372b6606046788778ef2bf
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
ret = access(path, F_OK);
if (ret == -1) {
- ERR("Error : key(%s) is not exist", key);
+ if (errno != ENOENT) {
+ ERR("Failed to access key(%s) node. errno(%d)",
+ key, errno);
+ }
*exist = 0;
} else {
*exist = 1;