diff options
author | bde <bde@FreeBSD.org> | 1998-07-11 10:45:45 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-07-11 10:45:45 +0000 |
commit | 26ff6d34887daf16b88675e35a1d561a1ccb7777 (patch) | |
tree | 36c9cec64637de7ab549931ea580900409d3c4a9 /sys | |
parent | 0f1bf62aae75001334b7694b03ec4ec55b1530cb (diff) | |
download | FreeBSD-src-26ff6d34887daf16b88675e35a1d561a1ccb7777.zip FreeBSD-src-26ff6d34887daf16b88675e35a1d561a1ccb7777.tar.gz |
Fixed printf format errors.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/tty.c | 14 | ||||
-rw-r--r-- | sys/kern/vfs_cluster.c | 11 |
2 files changed, 13 insertions, 12 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 7793446..99fc02f 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -38,7 +38,7 @@ static volatile int ttyverbose = 0; * SUCH DAMAGE. * * @(#)tty.c 8.8 (Berkeley) 1/21/94 - * $Id: tty.c,v 1.103 1998/05/17 20:08:05 bde Exp $ + * $Id: tty.c,v 1.104 1998/06/07 17:11:41 dfr Exp $ */ /*- @@ -2234,25 +2234,25 @@ ttyinfo(tp) calcru(pick, &utime, &stime, NULL); /* Print user time. */ - ttyprintf(tp, "%d.%02du ", + ttyprintf(tp, "%ld.%02ldu ", utime.tv_sec, utime.tv_usec / 10000); /* Print system time. */ - ttyprintf(tp, "%d.%02ds ", + ttyprintf(tp, "%ld.%02lds ", stime.tv_sec, stime.tv_usec / 10000); #define pgtok(a) (((a) * PAGE_SIZE) / 1024) /* Print percentage cpu, resident set size. */ tmp = (pick->p_pctcpu * 10000 + FSCALE / 2) >> FSHIFT; - ttyprintf(tp, "%d%% %dk\n", + ttyprintf(tp, "%d%% %ldk\n", tmp / 100, pick->p_stat == SIDL || pick->p_stat == SZOMB ? 0 : #ifdef pmap_resident_count - pgtok(pmap_resident_count(&pick->p_vmspace->vm_pmap)) + (long)pgtok(pmap_resident_count(&pick->p_vmspace->vm_pmap)) #else - pgtok(pick->p_vmspace->vm_rssize) + (long)pgtok(pick->p_vmspace->vm_rssize) #endif - ); + ); } tp->t_rocount = 0; /* so pending input will be retyped if BS */ } diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c index 1d06f8b..3ea15a4 100644 --- a/sys/kern/vfs_cluster.c +++ b/sys/kern/vfs_cluster.c @@ -33,7 +33,7 @@ * SUCH DAMAGE. * * @(#)vfs_cluster.c 8.7 (Berkeley) 2/13/94 - * $Id: vfs_cluster.c,v 1.63 1998/07/04 20:45:32 julian Exp $ + * $Id: vfs_cluster.c,v 1.64 1998/07/07 04:36:23 bde Exp $ */ #include "opt_debug_cluster.h" @@ -437,8 +437,8 @@ cluster_rbuild(vp, filesize, lbn, blkno, size, run, fbp) bp->b_pages[j] = bogus_page; } if (bp->b_bufsize > bp->b_kvasize) - panic("cluster_rbuild: b_bufsize(%d) > b_kvasize(%d)\n", - bp->b_bufsize, bp->b_kvasize); + panic("cluster_rbuild: b_bufsize(%ld) > b_kvasize(%d)\n", + bp->b_bufsize, bp->b_kvasize); bp->b_kvasize = bp->b_bufsize; pmap_qenter(trunc_page((vm_offset_t) bp->b_data), @@ -806,8 +806,9 @@ cluster_wbuild(vp, size, start_lbn, len) pmap_qenter(trunc_page((vm_offset_t) bp->b_data), (vm_page_t *) bp->b_pages, bp->b_npages); if (bp->b_bufsize > bp->b_kvasize) - panic("cluster_wbuild: b_bufsize(%d) > b_kvasize(%d)\n", - bp->b_bufsize, bp->b_kvasize); + panic( + "cluster_wbuild: b_bufsize(%ld) > b_kvasize(%d)\n", + bp->b_bufsize, bp->b_kvasize); bp->b_kvasize = bp->b_bufsize; totalwritten += bp->b_bufsize; bp->b_dirtyoff = 0; |