X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Ftimeval.c;h=b95d1f42551e7c3e353aac9f5a6d3b89c7635834;hb=10df718e73122df2f3b04ed585e50e4b299a8cbd;hp=42b706fb265a6aa0e7f662678afe9c1797b01783;hpb=7bc9188dda1cc2a54c45c4f1ab904d0ee023e428;p=openvswitch diff --git a/lib/timeval.c b/lib/timeval.c index 42b706fb..b95d1f42 100644 --- a/lib/timeval.c +++ b/lib/timeval.c @@ -27,9 +27,9 @@ #include "coverage.h" #include "fatal-signal.h" #include "util.h" - #include "vlog.h" -#define THIS_MODULE VLM_timeval + +VLOG_DEFINE_THIS_MODULE(timeval) /* The clock to use for measuring time intervals. This is CLOCK_MONOTONIC by * preference, but on systems that don't have a monotonic clock we fall back @@ -65,7 +65,7 @@ static void log_poll_interval(long long int last_wakeup, * * It is not necessary to call this function directly, because other time * functions will call it automatically, but it doesn't hurt. */ -void +static void time_init(void) { static bool inited;