Fix wrong log format arguments
[platform/core/appfw/pkgmgr-server.git] / src / restriction_mode.c
index 98cc83d..f5ace20 100644 (file)
@@ -105,7 +105,7 @@ static int __unset_restriction_mode(uid_t uid, int mode)
 
        fd = open(conf_path, O_RDWR, 0);
        if (fd < 0) {
-               ERR("failed to open conf file: %s", errno);
+               ERR("failed to open conf file(%s): %d", conf_path, errno);
                free(conf_path);
                return -1;
        }
@@ -154,7 +154,7 @@ static int __get_restriction_mode(uid_t uid, int *mode)
 
        fd = open(conf_path, O_RDONLY, 0);
        if (fd < 0) {
-               ERR("failed to open conf file: %s", errno);
+               ERR("failed to open conf file(%s): %d", conf_path, errno);
                free(conf_path);
                return -1;
        }