diff options
| author | Matthew Dillon <dillon@FreeBSD.org> | 2001-10-28 22:53:45 +0000 |
|---|---|---|
| committer | Matthew Dillon <dillon@FreeBSD.org> | 2001-10-28 22:53:45 +0000 |
| commit | 0e9fe2127cd2c3c2d4c1247d8bb738c7b8bfa980 (patch) | |
| tree | d2368c37f932b0a14879e5c8eedf11817a448e53 | |
| parent | 1482b97ae30126f480fd9e70e4e748b6a24bdbb6 (diff) | |
Notes
| -rw-r--r-- | sys/fs/procfs/procfs_status.c | 8 | ||||
| -rw-r--r-- | sys/kern/kern_resource.c | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/fs/procfs/procfs_status.c b/sys/fs/procfs/procfs_status.c index 1c8b4ca83d11..7c3122c9d3b6 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, diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c index b5eeb5eee55a..cf630ac17e62 100644 --- a/sys/kern/kern_resource.c +++ b/sys/kern/kern_resource.c @@ -651,10 +651,10 @@ calcru(p, up, sp, ip) */ microuptime(&tv); if (timevalcmp(&tv, PCPU_PTR(switchtime), <)) - printf("microuptime() went backwards (%ld.%06ld -> %ld.%06ld)\n", - PCPU_GET(switchtime.tv_sec), + printf("microuptime() went backwards (%lld.%06ld -> %lld.%06ld)\n", + (quad_t)PCPU_GET(switchtime.tv_sec), PCPU_GET(switchtime.tv_usec), - tv.tv_sec, tv.tv_usec); + (quad_t)tv.tv_sec, tv.tv_usec); else tu += (tv.tv_usec - PCPU_GET(switchtime.tv_usec)) |
