summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2001-10-28 22:53:45 +0000
committerdillon <dillon@FreeBSD.org>2001-10-28 22:53:45 +0000
commit6a075cd07bd4c9da92a7f801a0b109991ededd80 (patch)
treed2368c37f932b0a14879e5c8eedf11817a448e53 /sys/fs
parent532052c2b0d361a734f4675296e424713b0ed93a (diff)
downloadFreeBSD-src-6a075cd07bd4c9da92a7f801a0b109991ededd80.zip
FreeBSD-src-6a075cd07bd4c9da92a7f801a0b109991ededd80.tar.gz
Adjust printfs to be time_t agnostic.
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/procfs/procfs_status.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/fs/procfs/procfs_status.c b/sys/fs/procfs/procfs_status.c
index 1c8b4ca..7c3122c 100644
--- a/sys/fs/procfs/procfs_status.c
+++ b/sys/fs/procfs/procfs_status.c
@@ -139,11 +139,11 @@ procfs_dostatus(curp, p, pfs, uio)
calcru(p, &ut, &st, (struct timeval *) NULL);
mtx_unlock_spin(&sched_lock);
ps += snprintf(ps, psbuf + sizeof(psbuf) - ps,
- " %ld,%ld %ld,%ld %ld,%ld",
- p->p_stats->p_start.tv_sec,
+ " %lld,%ld %lld,%ld %lld,%ld",
+ (quad_t)p->p_stats->p_start.tv_sec,
p->p_stats->p_start.tv_usec,
- ut.tv_sec, ut.tv_usec,
- st.tv_sec, st.tv_usec);
+ (quad_t)ut.tv_sec, ut.tv_usec,
+ (quad_t)st.tv_sec, st.tv_usec);
} else {
mtx_unlock_spin(&sched_lock);
ps += snprintf(ps, psbuf + sizeof(psbuf) - ps,
OpenPOWER on IntegriCloud