diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-04-16 22:11:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-04-16 22:11:11 +0000 |
commit | c000a45638a94c189200d58ae7203431e1055666 (patch) | |
tree | 68aa85e0e767bd66e6277f38e5fe7bcf5b31e1f7 /usr.bin/kdump | |
parent | 6d4f4635648719e346e3ecf59677c3728f2344f9 (diff) |
handle large time_t variables; ok guenther
Diffstat (limited to 'usr.bin/kdump')
-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); } |