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;
}
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;
}