Author: alc
Date: Sat Oct 30 18:00:53 2010
New Revision: 214564
URL: http://svn.freebsd.org/changeset/base/214564

Log:
  Correct some format strings used by sysctls.
  
  MFC after:    1 week

Modified:
  head/sys/vm/vm_phys.c
  head/sys/vm/vm_reserv.c

Modified: head/sys/vm/vm_phys.c
==============================================================================
--- head/sys/vm/vm_phys.c       Sat Oct 30 17:21:32 2010        (r214563)
+++ head/sys/vm/vm_phys.c       Sat Oct 30 18:00:53 2010        (r214564)
@@ -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");
                }

Modified: head/sys/vm/vm_reserv.c
==============================================================================
--- head/sys/vm/vm_reserv.c     Sat Oct 30 17:21:32 2010        (r214563)
+++ head/sys/vm/vm_reserv.c     Sat Oct 30 18:00:53 2010        (r214564)
@@ -193,7 +193,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);
        }
        error = sbuf_finish(&sbuf);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to