diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2018-08-24 06:43:23 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2018-08-24 06:43:23 +0000 |
commit | 19bd845b3ff7ec6fa65049c6438c6b05adea281c (patch) | |
tree | 8555327d6751a682dad19e39ac7221cb18e09378 /sbin/sysctl | |
parent | 1c45986a99d166723fab8a17247686a092428bcf (diff) |
display CPU_CPUID / machdep.cpuid in hex not decimal
Diffstat (limited to 'sbin/sysctl')
-rw-r--r-- | sbin/sysctl/sysctl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index 8c8b2525bb0..25321169f58 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.c,v 1.233 2018/07/16 17:05:15 jasper Exp $ */ +/* $OpenBSD: sysctl.c,v 1.234 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; |