]> git.proxmox.com Git - mirror_frr.git/blobdiff - pimd/pim_time.c
zebra: Allow ns delete to happen after under/over flow checks
[mirror_frr.git] / pimd / pim_time.c
index ed2942d5946ceeb75561be688c0fb89f3e14325e..23c85c2fa8e7225d3725b1cf445339ba8ebaeba5 100644 (file)
@@ -35,9 +35,9 @@ static int gettime_monotonic(struct timeval *tv)
 
        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;
@@ -52,9 +52,9 @@ int64_t pim_time_monotonic_sec()
        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;
        }
 
@@ -71,9 +71,9 @@ int64_t pim_time_monotonic_dsec()
        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;
        }
 
@@ -89,9 +89,9 @@ int64_t pim_time_monotonic_usec(void)
        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;
        }