Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/vmstat Fix alignment of Flags column for vmstat -mW.



details:   https://anonhg.NetBSD.org/src/rev/47a41ccf866d
branches:  trunk
changeset: 744124:47a41ccf866d
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sat Jan 25 05:43:32 2020 +0000

description:
Fix alignment of Flags column for vmstat -mW.

diffstat:

 usr.bin/vmstat/vmstat.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r b46288d86945 -r 47a41ccf866d usr.bin/vmstat/vmstat.c
--- a/usr.bin/vmstat/vmstat.c   Sat Jan 25 00:12:42 2020 +0000
+++ b/usr.bin/vmstat/vmstat.c   Sat Jan 25 05:43:32 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmstat.c,v 1.235 2020/01/15 17:56:46 ad Exp $ */
+/* $NetBSD: vmstat.c,v 1.236 2020/01/25 05:43:32 simonb Exp $ */
 
 /*-
  * Copyright (c) 1998, 2000, 2001, 2007, 2019, 2020
@@ -71,7 +71,7 @@
 #if 0
 static char sccsid[] = "@(#)vmstat.c   8.2 (Berkeley) 3/1/95";
 #else
-__RCSID("$NetBSD: vmstat.c,v 1.235 2020/01/15 17:56:46 ad Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.236 2020/01/25 05:43:32 simonb Exp $");
 #endif
 #endif /* not lint */
 
@@ -1492,7 +1492,7 @@
            "Minpg",
            wide ? 7 : 6, "Maxpg",
            "Idle",
-           wide ? "  Flags" : "",
+           wide ? "   Flags" : "",
            wide ? "   Util" : "");
 
        name_len = MIN((int)sizeof(pp->pr_wchan), wide ? 16 : 11);
@@ -1533,7 +1533,7 @@
                PRWORD(ovflw, " %*s", wide ? 7 : 6, 1, maxp);
                PRWORD(ovflw, " %*" PRIu64, 5, 1, pp->pr_nidle);
                if (wide)
-                       PRWORD(ovflw, " 0x%0*" PRIx64, 5, 1,
+                       PRWORD(ovflw, " 0x%0*" PRIx64, 6, 1,
                            pp->pr_flags);
 
                this_inuse = pp->pr_nout * pp->pr_size;
@@ -1640,7 +1640,7 @@
                            "Minpg",
                            wide ? 7 : 6, "Maxpg",
                            "Idle",
-                           wide ? "  Flags" : "",
+                           wide ? "   Flags" : "",
                            wide ? "   Util" : "");
                        first = 0;
                }
@@ -1679,7 +1679,7 @@
                PRWORD(ovflw, " %*s", wide ? 7 : 6, 1, maxp);
                PRWORD(ovflw, " %*lu", 5, 1, pp->pr_nidle);
                if (wide)
-                       PRWORD(ovflw, " 0x%0*x", 5, 1,
+                       PRWORD(ovflw, " 0x%0*x", 6, 1,
                            pp->pr_flags | pp->pr_roflags);
 
                this_inuse = pp->pr_nout * pp->pr_size;



Home | Main Index | Thread Index | Old Index