+/*
+ * Copyright (C) 2005-2009 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>
#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.
*
{
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;
}