Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tidy up the output of "sysctl vm.phys_free".

Approved by:	re (glebius)
Sponsored by:	EMC / Isilon Storage Division
  • Loading branch information...
commit 83e71fe4f722622edac7f1b6b79ea5e801a75ea8 1 parent 5a13cd5
alc authored
Showing with 3 additions and 5 deletions.
  1. +3 −5 sys/vm/vm_phys.c
View
8 sys/vm/vm_phys.c
@@ -161,9 +161,9 @@ sysctl_vm_phys_free(SYSCTL_HANDLER_ARGS)
return (error);
sbuf_new_for_sysctl(&sbuf, NULL, 128 * vm_ndomains, req);
for (dom = 0; dom < vm_ndomains; dom++) {
- sbuf_printf(&sbuf,"DOMAIN: %d\n", dom);
+ sbuf_printf(&sbuf,"\nDOMAIN %d:\n", dom);
for (flind = 0; flind < vm_nfreelists; flind++) {
- sbuf_printf(&sbuf, "FREE LIST %d:\n"
+ sbuf_printf(&sbuf, "\nFREE LIST %d:\n"
"\n ORDER (SIZE) | NUMBER"
"\n ", flind);
for (pind = 0; pind < VM_NFREEPOOL; pind++)
@@ -177,14 +177,12 @@ sysctl_vm_phys_free(SYSCTL_HANDLER_ARGS)
1 << (PAGE_SHIFT - 10 + oind));
for (pind = 0; pind < VM_NFREEPOOL; pind++) {
fl = vm_phys_free_queues[dom][flind][pind];
- sbuf_printf(&sbuf, " | %6.6d",
+ sbuf_printf(&sbuf, " | %6d",
fl[oind].lcnt);
}
sbuf_printf(&sbuf, "\n");
}
- sbuf_printf(&sbuf, "\n");
}
- sbuf_printf(&sbuf, "\n");
}
error = sbuf_finish(&sbuf);
sbuf_delete(&sbuf);
Please sign in to comment.
Something went wrong with that request. Please try again.