Module Name: src
Committed By: pgoyette
Date: Fri Nov 23 06:44:39 UTC 2012
Modified Files:
src/usr.bin/systat: bufcache.c
Log Message:
Fix format string to resolve build break
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 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.23 src/usr.bin/systat/bufcache.c:1.24
--- src/usr.bin/systat/bufcache.c:1.23 Fri Nov 23 03:37:27 2012
+++ src/usr.bin/systat/bufcache.c Fri Nov 23 06:44:38 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: bufcache.c,v 1.23 2012/11/23 03:37:27 christos Exp $ */
+/* $NetBSD: bufcache.c,v 1.24 2012/11/23 06:44:38 pgoyette Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: bufcache.c,v 1.23 2012/11/23 03:37:27 christos Exp $");
+__RCSID("$NetBSD: bufcache.c,v 1.24 2012/11/23 06:44:38 pgoyette 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 %*ld kBytes of "
+ " %*d metadata buffers using %*"PRId64" kBytes of "
"memory (%2.0f%%).",
pgwidth, nbuf, kbwidth, bufmem / 1024,
((bufmem * 100.0) + 0.5) / getpagesize() / uvmexp.npages);