artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5599210
)
display CPU_CPUID / machdep.cpuid in hex not decimal
author
jsg
<jsg@openbsd.org>
Fri, 24 Aug 2018 06:43:22 +0000
(06:43 +0000)
committer
jsg
<jsg@openbsd.org>
Fri, 24 Aug 2018 06:43:22 +0000
(06:43 +0000)
sbin/sysctl/sysctl.c
patch
|
blob
|
history
diff --git
a/sbin/sysctl/sysctl.c
b/sbin/sysctl/sysctl.c
index
8c8b252
..
2532116
100644
(file)
--- a/
sbin/sysctl/sysctl.c
+++ b/
sbin/sysctl/sysctl.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: sysctl.c,v 1.23
3 2018/07/16 17:05:15 jasper Exp $
*/
+/* $OpenBSD: sysctl.c,v 1.23
4 2018/08/24 06:43:22 jsg Exp $
*/
/* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */
/*
@@
-672,6
+672,10
@@
parse(char *string, int flags)
if (mib[1] == CPU_CONSDEV)
special |= CHRDEV;
#endif
+#ifdef CPU_CPUID
+ if (mib[1] == CPU_CPUID)
+ special |= HEX;
+#endif
#ifdef CPU_CPUFEATURE
if (mib[1] == CPU_CPUFEATURE)
special |= HEX;