Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/systat Fix format string to resolve build break



details:   https://anonhg.NetBSD.org/src/rev/331af3887a15
branches:  trunk
changeset: 782858:331af3887a15
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Fri Nov 23 06:44:38 2012 +0000

description:
Fix format string to resolve build break

diffstat:

 usr.bin/systat/bufcache.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6a8ae287d582 -r 331af3887a15 usr.bin/systat/bufcache.c
--- a/usr.bin/systat/bufcache.c Fri Nov 23 03:47:36 2012 +0000
+++ b/usr.bin/systat/bufcache.c Fri Nov 23 06:44:38 2012 +0000
@@ -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 @@
                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);



Home | Main Index | Thread Index | Old Index