Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/intrctl fix column alignment of "intrctl list [-c]"



details:   https://anonhg.NetBSD.org/src/rev/b2c8567b72b4
branches:  trunk
changeset: 348686:b2c8567b72b4
user:      ryo <ryo%NetBSD.org@localhost>
date:      Wed Nov 02 11:03:33 2016 +0000

description:
fix column alignment of "intrctl list [-c]"

diffstat:

 usr.sbin/intrctl/intrctl.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r e8532ee51909 -r b2c8567b72b4 usr.sbin/intrctl/intrctl.c
--- a/usr.sbin/intrctl/intrctl.c        Wed Nov 02 10:14:04 2016 +0000
+++ b/usr.sbin/intrctl/intrctl.c        Wed Nov 02 11:03:33 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intrctl.c,v 1.6 2016/10/15 22:23:50 jdolecek Exp $     */
+/*     $NetBSD: intrctl.c,v 1.7 2016/11/02 11:03:33 ryo Exp $  */
 
 /*
  * Copyright (c) 2015 Internet Initiative Japan Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: intrctl.c,v 1.6 2016/10/15 22:23:50 jdolecek Exp $");
+__RCSID("$NetBSD: intrctl.c,v 1.7 2016/11/02 11:03:33 ryo Exp $");
 
 #include <sys/param.h>
 #include <sys/sysctl.h>
@@ -164,10 +164,10 @@
        }
 
        /* header */
-       printf("%-*s", (int)intridlen, "interrupt id");
+       printf("%-*s ", (int)intridlen, "interrupt id");
        if (compact) {
-               printf(" %20s ", "total");
-               printf(" %5s ", "aff");
+               printf("%20s ", "total");
+               printf("%5s ", "aff");
        } else {
                for (i = 0; i < ncpus; i++) {
                        snprintf(buf, sizeof(buf), "CPU%u", i);



Home | Main Index | Thread Index | Old Index