diff options
author | 2013-04-16 22:11:10 +0000 | |
---|---|---|
committer | 2013-04-16 22:11:10 +0000 | |
commit | 540647f77ff5c8b989e735d22a4ad79563356133 (patch) | |
tree | daf5038d3658dc535b954b837a870a3a5948c548 | |
parent | mark time_t edges with comments (diff) | |
download | wireguard-openbsd-540647f77ff5c8b989e735d22a4ad79563356133.tar.xz wireguard-openbsd-540647f77ff5c8b989e735d22a4ad79563356133.zip |
handle large time_t variables; ok guenther
-rw-r--r-- | usr.bin/kdump/kdump.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c index 2cae4eb98d9..af747b76250 100644 --- a/usr.bin/kdump/kdump.c +++ b/usr.bin/kdump/kdump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kdump.c,v 1.78 2013/04/15 16:47:14 guenther Exp $ */ +/* $OpenBSD: kdump.c,v 1.79 2013/04/16 22:11:10 deraadt Exp $ */ /*- * Copyright (c) 1988, 1993 @@ -385,7 +385,8 @@ dumpheader(struct ktr_header *kth) prevtime = kth->ktr_time; } else temp = kth->ktr_time; - (void)printf("%ld.%06ld ", temp.tv_sec, temp.tv_nsec / 1000); + printf("%lld.%06ld ", (long long)temp.tv_sec, + temp.tv_nsec / 1000); } (void)printf("%s ", type); } |