Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm Fix format string; use PRIu64 for uint64_t.



details:   https://anonhg.NetBSD.org/src/rev/d622e33dff64
branches:  trunk
changeset: 760478:d622e33dff64
user:      enami <enami%NetBSD.org@localhost>
date:      Wed Jan 05 21:20:44 2011 +0000

description:
Fix format string; use PRIu64 for uint64_t.

diffstat:

 sys/uvm/uvm_stat.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r b78af9f117a2 -r d622e33dff64 sys/uvm/uvm_stat.c
--- a/sys/uvm/uvm_stat.c        Wed Jan 05 21:20:25 2011 +0000
+++ b/sys/uvm/uvm_stat.c        Wed Jan 05 21:20:44 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_stat.c,v 1.34 2011/01/04 08:17:01 matt Exp $        */
+/*     $NetBSD: uvm_stat.c,v 1.35 2011/01/05 21:20:44 enami Exp $       */
 
 /*
  *
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_stat.c,v 1.34 2011/01/04 08:17:01 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_stat.c,v 1.35 2011/01/05 21:20:44 enami Exp $");
 
 #include "opt_uvmhist.h"
 #include "opt_readahead.h"
@@ -206,7 +206,8 @@
  * uvmexp_print: ddb hook to print interesting uvm counters
  */
 void
-uvmexp_print(void (*pr)(const char *, ...))
+uvmexp_print(void (*pr)(const char *, ...)
+    __attribute__((__format__(__printf__,1,2))))
 {
        int active, inactive;
        CPU_INFO_ITERATOR cii;
@@ -229,7 +230,7 @@
        for (CPU_INFO_FOREACH(cii, ci)) {
                (*pr)("  cpu%u:\n", cpu_index(ci));
                (*pr)("    faults=%" PRIu64 ", traps=%" PRIu64 ", "
-                   "intrs=%llu, ctxswitch=%llu\n",
+                   "intrs=%" PRIu64 ", ctxswitch=%" PRIu64 "\n",
                    ci->ci_data.cpu_nfault, ci->ci_data.cpu_ntrap,
                    ci->ci_data.cpu_nintr, ci->ci_data.cpu_nswtch);
                (*pr)("    softint=%" PRIu64 ", syscalls=%" PRIu64 "\n",



Home | Main Index | Thread Index | Old Index