Correct some format strings used by sysctls.

MFC after:	1 week
This commit is contained in:
alc 2010-10-30 18:00:53 +00:00
parent 17ccf31867
commit 80380396eb
2 changed files with 3 additions and 3 deletions

View File

@ -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");
}

View File

@ -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);