diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2004-01-15 20:39:34 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2004-01-15 20:39:34 +0000 |
commit | 2013ef0072d6bc9919bbf7b5dfc80727b0500553 (patch) | |
tree | 0de41a3050a677cf1af2b8da329b6104753fd4b5 /usr.bin/vmstat/vmstat.c | |
parent | 893ea122b2c8043e18c59ee9f1bcb1ec5cb6e71a (diff) |
Fix printf format string. ok tedu@
Diffstat (limited to 'usr.bin/vmstat/vmstat.c')
-rw-r--r-- | usr.bin/vmstat/vmstat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c index 2dc194accaa..6adaca8d53c 100644 --- a/usr.bin/vmstat/vmstat.c +++ b/usr.bin/vmstat/vmstat.c @@ -1,5 +1,5 @@ /* $NetBSD: vmstat.c,v 1.29.4.1 1996/06/05 00:21:05 cgd Exp $ */ -/* $OpenBSD: vmstat.c,v 1.80 2003/07/28 06:16:35 tedu Exp $ */ +/* $OpenBSD: vmstat.c,v 1.81 2004/01/15 20:39:33 otto Exp $ */ /* * Copyright (c) 1980, 1986, 1991, 1993 @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)vmstat.c 8.1 (Berkeley) 6/6/93"; #else -static const char rcsid[] = "$OpenBSD: vmstat.c,v 1.80 2003/07/28 06:16:35 tedu Exp $"; +static const char rcsid[] = "$OpenBSD: vmstat.c,v 1.81 2004/01/15 20:39:33 otto Exp $"; #endif #endif /* not lint */ @@ -811,8 +811,8 @@ dointr_sysctl(void) return ; } if (cnt) - (void)printf("%-14s %12ld %8ld\n", intrname, - cnt, cnt / uptime); + (void)printf("%-14s %12d %8ld\n", intrname, + cnt, (long)cnt / uptime); inttotal += cnt; } |