Module Name:    src
Committed By:   jdolecek
Date:           Sat Oct 15 12:14:00 UTC 2016

Modified Files:
        src/usr.sbin/intrctl: intrctl.c

Log Message:
reduce the affinity column to just 5 chars for compact list


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/intrctl/intrctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/intrctl/intrctl.c
diff -u src/usr.sbin/intrctl/intrctl.c:1.4 src/usr.sbin/intrctl/intrctl.c:1.5
--- src/usr.sbin/intrctl/intrctl.c:1.4	Sat Oct 15 12:06:27 2016
+++ src/usr.sbin/intrctl/intrctl.c	Sat Oct 15 12:14:00 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: intrctl.c,v 1.4 2016/10/15 12:06:27 jdolecek Exp $	*/
+/*	$NetBSD: intrctl.c,v 1.5 2016/10/15 12:14:00 jdolecek Exp $	*/
 
 /*
  * Copyright (c) 2015 Internet Initiative Japan Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: intrctl.c,v 1.4 2016/10/15 12:06:27 jdolecek Exp $");
+__RCSID("$NetBSD: intrctl.c,v 1.5 2016/10/15 12:14:00 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/sysctl.h>
@@ -167,7 +167,7 @@ intrctl_list(int argc, char **argv)
 	printf("%-*s", (int)intridlen, "interrupt id");
 	if (compact) {
 		printf(" %20s ", "total");
-		printf(" %20s ", "affinity");
+		printf(" %5s ", "aff");
 	} else {
 		for (i = 0; i < ncpus; i++) {
 			snprintf(buf, sizeof(buf), "CPU%u", i);
@@ -199,7 +199,7 @@ intrctl_list(int argc, char **argv)
 				}
 			}
 			printf("%20" PRIu64 " ", total);
-			printf("%20s ", affinity ? affinity : "none");
+			printf("%5s ", affinity ? affinity : "none");
 			free(affinity);
 		} else {
 			for (i = 0; i < ncpus; i++) {

Reply via email to