Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/cpuctl/arch display the raw value of each field whe...



details:   https://anonhg.NetBSD.org/src/rev/823847484073
branches:  trunk
changeset: 359447:823847484073
user:      ryo <ryo%NetBSD.org@localhost>
date:      Thu Jan 06 18:00:58 2022 +0000

description:
display the raw value of each field when -v specified

diffstat:

 usr.sbin/cpuctl/arch/aarch64.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 663fbf5d79a2 -r 823847484073 usr.sbin/cpuctl/arch/aarch64.c
--- a/usr.sbin/cpuctl/arch/aarch64.c    Thu Jan 06 17:59:15 2022 +0000
+++ b/usr.sbin/cpuctl/arch/aarch64.c    Thu Jan 06 18:00:58 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aarch64.c,v 1.19 2022/01/06 17:59:15 ryo Exp $ */
+/*     $NetBSD: aarch64.c,v 1.20 2022/01/06 18:00:58 ryo Exp $ */
 
 /*
  * Copyright (c) 2018 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -29,7 +29,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: aarch64.c,v 1.19 2022/01/06 17:59:15 ryo Exp $");
+__RCSID("$NetBSD: aarch64.c,v 1.20 2022/01/06 18:00:58 ryo Exp $");
 #endif /* no lint */
 
 #include <sys/types.h>
@@ -1008,6 +1008,9 @@
                printf("%s: %s: %s: ",
                    cpuname, setname, fieldinfo[i].name);
 
+               if (verbose)
+                       printf("0x%"PRIx64": ", v);
+
                if (info == NULL) {
                        if (flags & FIELDINFO_FLAGS_4LOG2)
                                v = 4 * (1 << v);



Home | Main Index | Thread Index | Old Index