diff options
| author | Rosen Penev | 2020-10-15 06:10:27 +0000 |
|---|---|---|
| committer | John Crispin | 2021-01-26 10:22:30 +0000 |
| commit | 78aa36b0e9808e801c527c6dc47320e593309522 (patch) | |
| tree | dec1465901e1aaf3cb724f01fa726559fa71b94c | |
| parent | 59e4fc98162d253b4e5ecd110f7bc5ea3962e221 (diff) | |
| download | mdnsd-78aa36b0e9808e801c527c6dc47320e593309522.tar.gz | |
umdns: fix 64-bit time format string
Fixes compilation under musl 1.2.0
Signed-off-by: Rosen Penev <rosenp@gmail.com>
| -rw-r--r-- | service.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -17,6 +17,7 @@ #include <resolv.h> #include <glob.h> +#include <inttypes.h> #include <stdio.h> #include <time.h> @@ -122,7 +123,7 @@ service_timeout(struct service *s) time_t t = monotonic_time(); if (t - s->t <= TOUT_LOOKUP) { - DBG(2, "t=%lu, s->t=%lu, t - s->t = %lu\n", t, s->t, t - s->t); + DBG(2, "t=%" PRId64 ", s->t=%" PRId64 ", t - s->t = %" PRId64 "\n", (int64_t)t, (int64_t)s->t, (int64_t)(t - s->t)); return 0; } |