Module Name: src
Committed By: christos
Date: Fri Nov 23 15:35:57 UTC 2012
Modified Files:
src/usr.bin/systat: bufcache.c
Log Message:
bufmem is unsigned.
To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/usr.bin/systat/bufcache.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/systat/bufcache.c
diff -u src/usr.bin/systat/bufcache.c:1.24 src/usr.bin/systat/bufcache.c:1.25
--- src/usr.bin/systat/bufcache.c:1.24 Fri Nov 23 01:44:38 2012
+++ src/usr.bin/systat/bufcache.c Fri Nov 23 10:35:57 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: bufcache.c,v 1.24 2012/11/23 06:44:38 pgoyette Exp $ */
+/* $NetBSD: bufcache.c,v 1.25 2012/11/23 15:35:57 christos Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: bufcache.c,v 1.24 2012/11/23 06:44:38 pgoyette Exp $");
+__RCSID("$NetBSD: bufcache.c,v 1.25 2012/11/23 15:35:57 christos Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -134,7 +134,7 @@ showbufcache(void)
error("can't get \"vm.bufmmem\": %s", strerror(errno));
mvwprintw(wnd, 0, 0,
- " %*d metadata buffers using %*"PRId64" kBytes of "
+ " %*d metadata buffers using %*"PRIu64" kBytes of "
"memory (%2.0f%%).",
pgwidth, nbuf, kbwidth, bufmem / 1024,
((bufmem * 100.0) + 0.5) / getpagesize() / uvmexp.npages);