Module Name: src
Committed By: ryo
Date: Thu Jan 6 18:00:58 UTC 2022
Modified Files:
src/usr.sbin/cpuctl/arch: aarch64.c
Log Message:
display the raw value of each field when -v specified
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/usr.sbin/cpuctl/arch/aarch64.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/cpuctl/arch/aarch64.c
diff -u src/usr.sbin/cpuctl/arch/aarch64.c:1.19 src/usr.sbin/cpuctl/arch/aarch64.c:1.20
--- src/usr.sbin/cpuctl/arch/aarch64.c:1.19 Thu Jan 6 17:59:15 2022
+++ src/usr.sbin/cpuctl/arch/aarch64.c Thu Jan 6 18:00:58 2022
@@ -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 <[email protected]>
@@ -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 @@ print_fieldinfo(const char *cpuname, con
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);