diff options
author | Mattias Andrée <maandree@kth.se> | 2023-07-01 08:10:04 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-07-01 08:10:04 +0200 |
commit | 4477e2e5a22e0c1217f02bd48006cdba91aabc1c (patch) | |
tree | f902bdc6b56d0bb3f7fbb6d010840d85077569d9 | |
parent | Remove -s from LDFLAGS (diff) | |
download | timeprefix-4477e2e5a22e0c1217f02bd48006cdba91aabc1c.tar.gz timeprefix-4477e2e5a22e0c1217f02bd48006cdba91aabc1c.tar.bz2 timeprefix-4477e2e5a22e0c1217f02bd48006cdba91aabc1c.tar.xz |
Fix argument types for printf3.1
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | timeprefix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/timeprefix.c b/timeprefix.c index 6be5fa6..45bc011 100644 --- a/timeprefix.c +++ b/timeprefix.c @@ -52,8 +52,8 @@ printline(const char *line) utctime = gmtime(&walltime.tv_sec); #endif - printf("[%010lu.%04lu %i-%02i-%02i %02i:%02i:%02i UTC] %s", - boottime.tv_sec, boottime.tv_nsec / 100000, + printf("[%010lli.%04li %i-%02i-%02i %02i:%02i:%02i UTC] %s", + (long long int)boottime.tv_sec, boottime.tv_nsec / 100000, utctime->tm_year + 1900, utctime->tm_mon + 1, utctime->tm_mday, utctime->tm_hour, utctime->tm_min, utctime->tm_sec, line); |