From 80380396eb82f5b772e1dc397e7136aa8708a121 Mon Sep 17 00:00:00 2001 From: alc Date: Sat, 30 Oct 2010 18:00:53 +0000 Subject: [PATCH] Correct some format strings used by sysctls. MFC after: 1 week --- sys/vm/vm_phys.c | 4 ++-- sys/vm/vm_reserv.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/vm/vm_phys.c b/sys/vm/vm_phys.c index 26e4981606a2..16b6747ba35f 100644 --- a/sys/vm/vm_phys.c +++ b/sys/vm/vm_phys.c @@ -137,11 +137,11 @@ sysctl_vm_phys_free(SYSCTL_HANDLER_ARGS) sbuf_printf(&sbuf, "-- -- "); sbuf_printf(&sbuf, "--\n"); for (oind = VM_NFREEORDER - 1; oind >= 0; oind--) { - sbuf_printf(&sbuf, " %2.2d (%6.6dK)", oind, + sbuf_printf(&sbuf, " %2d (%6dK)", oind, 1 << (PAGE_SHIFT - 10 + oind)); for (pind = 0; pind < VM_NFREEPOOL; pind++) { fl = vm_phys_free_queues[flind][pind]; - sbuf_printf(&sbuf, " | %6.6d", fl[oind].lcnt); + sbuf_printf(&sbuf, " | %6d", fl[oind].lcnt); } sbuf_printf(&sbuf, "\n"); } diff --git a/sys/vm/vm_reserv.c b/sys/vm/vm_reserv.c index aa8e80f7311b..423bb3115af5 100644 --- a/sys/vm/vm_reserv.c +++ b/sys/vm/vm_reserv.c @@ -193,7 +193,7 @@ sysctl_vm_reserv_partpopq(SYSCTL_HANDLER_ARGS) unused_pages += VM_LEVEL_0_NPAGES - rv->popcnt; } mtx_unlock(&vm_page_queue_free_mtx); - sbuf_printf(&sbuf, "%5.5d: %6.6dK, %6.6d\n", level, + sbuf_printf(&sbuf, "%5d: %6dK, %6d\n", level, unused_pages * (PAGE_SIZE / 1024), counter); } error = sbuf_finish(&sbuf);