Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/intrctl reduce the affinity column to just 5 chars ...
details: https://anonhg.NetBSD.org/src/rev/c3f033480fb3
branches: trunk
changeset: 348336:c3f033480fb3
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sat Oct 15 12:14:00 2016 +0000
description:
reduce the affinity column to just 5 chars for compact list
diffstat:
usr.sbin/intrctl/intrctl.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 3894217c9a38 -r c3f033480fb3 usr.sbin/intrctl/intrctl.c
--- a/usr.sbin/intrctl/intrctl.c Sat Oct 15 12:06:27 2016 +0000
+++ b/usr.sbin/intrctl/intrctl.c Sat Oct 15 12:14:00 2016 +0000
@@ -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 @@
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 @@
}
}
printf("%20" PRIu64 " ", total);
- printf("%20s ", affinity ? affinity : "none");
+ printf("%5s ", affinity ? affinity : "none");
free(affinity);
} else {
for (i = 0; i < ncpus; i++) {
Home |
Main Index |
Thread Index |
Old Index