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 If -v is set and unknown cacheinfo desc...



details:   https://anonhg.NetBSD.org/src/rev/3b35b94440ac
branches:  trunk
changeset: 796252:3b35b94440ac
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue May 27 04:18:00 2014 +0000

description:
If -v is set and unknown cacheinfo desc is found, print it.

diffstat:

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

diffs (28 lines):

diff -r 2dd38107119a -r 3b35b94440ac usr.sbin/cpuctl/arch/i386.c
--- a/usr.sbin/cpuctl/arch/i386.c       Tue May 27 03:17:33 2014 +0000
+++ b/usr.sbin/cpuctl/arch/i386.c       Tue May 27 04:18:00 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i386.c,v 1.54 2014/01/04 18:13:48 msaitoh Exp $        */
+/*     $NetBSD: i386.c,v 1.55 2014/05/27 04:18:00 msaitoh Exp $        */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: i386.c,v 1.54 2014/01/04 18:13:48 msaitoh Exp $");
+__RCSID("$NetBSD: i386.c,v 1.55 2014/05/27 04:18:00 msaitoh Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -997,6 +997,9 @@
                                    desc);
                                if (cai != NULL)
                                        ci->ci_cinfo[cai->cai_index] = *cai;
+                               else if (verbose)
+                                       printf("Unknown cacheinfo desc %02x\n",
+                                           desc);
                        }
                }
                x86_cpuid(2, descs);



Home | Main Index | Thread Index | Old Index