Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/usr.sbin/pstat pull up rev 1.46 from trunk (requested b...



details:   https://anonhg.NetBSD.org/src/rev/f9e3d47074e1
branches:  netbsd-1-4
changeset: 469560:f9e3d47074e1
user:      cgd <cgd%NetBSD.org@localhost>
date:      Sun Oct 10 20:52:23 1999 +0000

description:
pull up rev 1.46 from trunk (requested by mycroft):
  Fix potential overflow of v_usecount and v_writecount (and panics
  resulting from this) by widening them to `long'.  Mostly affects
  systems where maxvnodes>=32768.

diffstat:

 usr.sbin/pstat/pstat.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8987bab4e373 -r f9e3d47074e1 usr.sbin/pstat/pstat.c
--- a/usr.sbin/pstat/pstat.c    Sun Oct 10 20:51:58 1999 +0000
+++ b/usr.sbin/pstat/pstat.c    Sun Oct 10 20:52:23 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pstat.c,v 1.44 1999/01/31 10:12:33 mrg Exp $   */
+/*     $NetBSD: pstat.c,v 1.44.2.1 1999/10/10 20:52:23 cgd Exp $       */
 
 /*-
  * Copyright (c) 1980, 1991, 1993, 1994
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)pstat.c    8.16 (Berkeley) 5/9/95";
 #else
-__RCSID("$NetBSD: pstat.c,v 1.44 1999/01/31 10:12:33 mrg Exp $");
+__RCSID("$NetBSD: pstat.c,v 1.44.2.1 1999/10/10 20:52:23 cgd Exp $");
 #endif
 #endif /* not lint */
 
@@ -400,7 +400,7 @@
        if (flag == 0)
                *fp++ = '-';
        *fp = '\0';
-       (void)printf("%8lx %s %5s %4d %4ld %4d",
+       (void)printf("%8lx %s %5s %4ld %4ld %4d",
            (long)avnode, type, flags, vp->v_usecount, (long)vp->v_holdcnt,
            vp->v_tag);
 }



Home | Main Index | Thread Index | Old Index