diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-05-22 11:44:03 +0900 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-05-22 11:44:03 +0900 |
commit | 609e002e78e79ef2bf9d6a6ea22bda215abbbb14 (patch) | |
tree | 6849887587763c2c1333216e9f942c9a74b9b537 /src/shared/logs-show.c | |
parent | 558c6490b1df7f82a63d0a747fda7412c4d28b0c (diff) |
time-util: make sure USEC_PER_SEC and friends are actually of type usec_t
Diffstat (limited to 'src/shared/logs-show.c')
-rw-r--r-- | src/shared/logs-show.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c index c3578ac918..8edf4087c6 100644 --- a/src/shared/logs-show.c +++ b/src/shared/logs-show.c @@ -301,8 +301,8 @@ static int output_short( } fprintf(f, "[%5llu.%06llu]", - t / USEC_PER_SEC, - t % USEC_PER_SEC); + (unsigned long long) (t / USEC_PER_SEC), + (unsigned long long) (t % USEC_PER_SEC)); n += 1 + 5 + 1 + 6 + 1; @@ -335,7 +335,7 @@ static int output_short( r = strftime(buf, sizeof(buf), "%b %d %H:%M:%S", localtime_r(&t, &tm)); if (r > 0) { snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), - ".%06llu", x % USEC_PER_SEC); + ".%06llu", (unsigned long long) (x % USEC_PER_SEC)); } break; default: |