result = gettimeofday(tv, 0);
if (result) {
- zlog_ferr(LIB_ERR_SYSTEM_CALL,
- "%s: gettimeofday() failure: errno=%d: %s",
- __PRETTY_FUNCTION__, errno, safe_strerror(errno));
+ flog_err_sys(EC_LIB_SYSTEM_CALL,
+ "%s: gettimeofday() failure: errno=%d: %s",
+ __PRETTY_FUNCTION__, errno, safe_strerror(errno));
}
return result;
struct timeval now_tv;
if (gettime_monotonic(&now_tv)) {
- zlog_ferr(LIB_ERR_SYSTEM_CALL,
- "%s: gettime_monotonic() failure: errno=%d: %s",
- __PRETTY_FUNCTION__, errno, safe_strerror(errno));
+ flog_err_sys(EC_LIB_SYSTEM_CALL,
+ "%s: gettime_monotonic() failure: errno=%d: %s",
+ __PRETTY_FUNCTION__, errno, safe_strerror(errno));
return -1;
}
int64_t now_dsec;
if (gettime_monotonic(&now_tv)) {
- zlog_ferr(LIB_ERR_SYSTEM_CALL,
- "%s: gettime_monotonic() failure: errno=%d: %s",
- __PRETTY_FUNCTION__, errno, safe_strerror(errno));
+ flog_err_sys(EC_LIB_SYSTEM_CALL,
+ "%s: gettime_monotonic() failure: errno=%d: %s",
+ __PRETTY_FUNCTION__, errno, safe_strerror(errno));
return -1;
}
int64_t now_dsec;
if (gettime_monotonic(&now_tv)) {
- zlog_ferr(LIB_ERR_SYSTEM_CALL,
- "%s: gettime_monotonic() failure: errno=%d: %s",
- __PRETTY_FUNCTION__, errno, safe_strerror(errno));
+ flog_err_sys(EC_LIB_SYSTEM_CALL,
+ "%s: gettime_monotonic() failure: errno=%d: %s",
+ __PRETTY_FUNCTION__, errno, safe_strerror(errno));
return -1;
}