Introduce get_config_file_name().
[dss.git] / time.c
diff --git a/time.c b/time.c
index b54e34c565f7be55b6370f468bc8e4c811809f70..3cc1ad64ac943422b30df8a8532f629cbcc63c2d 100644 (file)
--- a/time.c
+++ b/time.c
@@ -1,3 +1,11 @@
+/*
+ * Copyright (C) 2005-2010 Andre Noll <maan@systemlinux.org>
+ *
+ * Licensed under the GPL v2. For licencing details see COPYING.
+ */
+
+/** \file time.c Helper functions for dealing with time values. */
+
 #include <sys/time.h>
 #include <time.h>
 #include <inttypes.h>
@@ -9,14 +17,6 @@
 #include "string.h"
 #include "log.h"
 
-/*
- * Copyright (C) 2005-2008 Andre Noll <maan@systemlinux.org>
- *
- * Licensed under the GPL v2. For licencing details see COPYING.
- */
-
-/** \file time.c Helper functions for dealing with time values. */
-
 /**
  * Convert struct timeval to milliseconds.
  *
@@ -141,6 +141,6 @@ int64_t get_current_time(void)
 {
        time_t now;
        time(&now);
-       DSS_DEBUG_LOG("now: %lli\n", (long long) now);
+       DSS_DEBUG_LOG("now: %jd\n", (intmax_t)now);
        return (int64_t)now;
 }