fp = fopen(DATA_USAGE_FILE, "r");
if (fp == NULL) {
ERR("%s open failed\n", DATA_USAGE_FILE); //LCOV_EXCL_LINE
- strerror_r(errno, err_buf, sizeof(err_buf));
- ERR("%s\n", err_buf); //LCOV_EXCL_LINE
+ ERR("%s\n", strerror_r(errno, err_buf, sizeof(err_buf))); //LCOV_EXCL_LINE
return MOBILE_AP_ERROR_INTERNAL;
}
fp = fopen(DATA_USAGE_FILE, "r");
if (fp == NULL) {
ERR("%s open failed\n", DATA_USAGE_FILE); //LCOV_EXCL_LINE
- strerror_r(errno, err_buf, sizeof(err_buf));
- ERR("%s\n", err_buf); //LCOV_EXCL_LINE
+ ERR("%s\n", strerror_r(errno, err_buf, sizeof(err_buf))); //LCOV_EXCL_LINE
return MOBILE_AP_ERROR_INTERNAL;
}
ret = unlink(HOSTAPD_CONF_FILE);
if (ret < 0) {
- strerror_r(errno, buf, sizeof(buf));
- ERR("unlink is failed : %s\n", buf); //LCOV_EXCL_LINE
+ ERR("unlink is failed : %s\n", strerror_r(errno, buf, sizeof(buf))); //LCOV_EXCL_LINE
}
return MOBILE_AP_ERROR_NONE;
ret = send(fd, req, req_len, 0);
if (ret < 0) {
- strerror_r(errno, err_buf, sizeof(err_buf));
- ERR("send is failed : %s\n", err_buf); //LCOV_EXCL_LINE
+ ERR("send is failed : %s\n", strerror_r(errno, err_buf, sizeof(err_buf))); //LCOV_EXCL_LINE
return MOBILE_AP_ERROR_INTERNAL;
}
ret = unlink(DNSMASQ_CONF_FILE);
if (ret < 0) {
- strerror_r(errno, buf, sizeof(buf));
- ERR("unlink is failed : %s\n", buf); //LCOV_EXCL_LINE
+ ERR("unlink is failed : %s\n", strerror_r(errno, buf, sizeof(buf))); //LCOV_EXCL_LINE
}
DBG("dnsmasq is disabled");