diff options
author | trhodes <trhodes@FreeBSD.org> | 2005-12-24 22:22:17 +0000 |
---|---|---|
committer | trhodes <trhodes@FreeBSD.org> | 2005-12-24 22:22:17 +0000 |
commit | 412f766852e2da36b4f178232cadb20dda832f61 (patch) | |
tree | 99de98c38a690d4ece3fe809f6493bae7a25e39b /sys/fs/procfs | |
parent | 130f918f03cc5185b2ae0c0a13e639fbe38250bf (diff) | |
download | FreeBSD-src-412f766852e2da36b4f178232cadb20dda832f61.zip FreeBSD-src-412f766852e2da36b4f178232cadb20dda832f61.tar.gz |
Make tv_sec a time_t on all platforms but alpha. Brings us more in line with
POSIX. This also makes the struct correct we ever implement an i386-time64
architecture. Not that we need too.
Reviewed by: imp, brooks
Approved by: njl (acpica), des (no objects, touches procfs)
Tested with: make universe
Diffstat (limited to 'sys/fs/procfs')
-rw-r--r-- | sys/fs/procfs/procfs_status.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/fs/procfs/procfs_status.c b/sys/fs/procfs/procfs_status.c index 1579037..95f2b17 100644 --- a/sys/fs/procfs/procfs_status.c +++ b/sys/fs/procfs/procfs_status.c @@ -132,10 +132,10 @@ procfs_doprocstatus(PFS_FILL_ARGS) calcru(p, &ut, &st); start = p->p_stats->p_start; timevaladd(&start, &boottime); - sbuf_printf(sb, " %ld,%ld %ld,%ld %ld,%ld", - start.tv_sec, start.tv_usec, - ut.tv_sec, ut.tv_usec, - st.tv_sec, st.tv_usec); + sbuf_printf(sb, " %jd,%ld %jd,%ld %jd,%ld", + (intmax_t)start.tv_sec, start.tv_usec, + (intmax_t)ut.tv_sec, ut.tv_usec, + (intmax_t)st.tv_sec, st.tv_usec); } else { sbuf_printf(sb, " -1,-1 -1,-1 -1,-1"); } |