Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Oct 2013 16:11:45 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r256275 - head/sys/vm
Message-ID:  <201310101611.r9AGBj7s020019@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Thu Oct 10 16:11:45 2013
New Revision: 256275
URL: http://svnweb.freebsd.org/changeset/base/256275

Log:
  Tidy up the output of "sysctl vm.phys_free".
  
  Approved by:	re (glebius)
  Sponsored by:	EMC / Isilon Storage Division

Modified:
  head/sys/vm/vm_phys.c

Modified: head/sys/vm/vm_phys.c
==============================================================================
--- head/sys/vm/vm_phys.c	Thu Oct 10 16:11:34 2013	(r256274)
+++ head/sys/vm/vm_phys.c	Thu Oct 10 16:11:45 2013	(r256275)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310101611.r9AGBj7s020019>