svn commit: r214943 - stable/7/sys/vm

Alan Cox alc at FreeBSD.org
Sun Nov 7 20:20:20 UTC 2010


Author: alc
Date: Sun Nov  7 20:20:19 2010
New Revision: 214943
URL: http://svn.freebsd.org/changeset/base/214943

Log:
  MFC r214564
    Correct some format strings used by sysctls.

Modified:
  stable/7/sys/vm/vm_phys.c
  stable/7/sys/vm/vm_reserv.c
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/vm/vm_phys.c
==============================================================================
--- stable/7/sys/vm/vm_phys.c	Sun Nov  7 19:51:51 2010	(r214942)
+++ stable/7/sys/vm/vm_phys.c	Sun Nov  7 20:20:19 2010	(r214943)
@@ -120,11 +120,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");
 		}

Modified: stable/7/sys/vm/vm_reserv.c
==============================================================================
--- stable/7/sys/vm/vm_reserv.c	Sun Nov  7 19:51:51 2010	(r214942)
+++ stable/7/sys/vm/vm_reserv.c	Sun Nov  7 20:20:19 2010	(r214943)
@@ -196,7 +196,7 @@ sysctl_vm_reserv_partpopq(SYSCTL_HANDLER
 			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);
 	}
 	sbuf_finish(&sbuf);


More information about the svn-src-stable-7 mailing list