summaryrefslogtreecommitdiff
path: root/cpuid.c
diff options
context:
space:
mode:
authordavej <davej>2002-01-03 18:26:59 +0000
committerdavej <davej>2002-01-03 18:26:59 +0000
commit0e7d6618a39746f81c4948a09a13ed470cca2272 (patch)
treebe9f4a36f708166b57ba18756850aeacab67a4e8 /cpuid.c
parent5e82b5806d4c514c316019382fa7df5fc85dd9a6 (diff)
David Relson <relson@osagesoftware.com>
* x86info.c: Export nrCPUs * cpuid.c: don't print warnings about cpuid driver on UP.
Diffstat (limited to 'cpuid.c')
-rw-r--r--cpuid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpuid.c b/cpuid.c
index 51f89a2..b1f48cf 100644
--- a/cpuid.c
+++ b/cpuid.c
@@ -1,5 +1,5 @@
/*
- * $Id: cpuid.c,v 1.9 2001/11/19 12:31:27 davej Exp $
+ * $Id: cpuid.c,v 1.10 2002/01/03 18:26:59 davej Exp $
* This file is part of x86info
* (C) 2000, 2001 Dave Jones.
* Fixes by Arjan van de Ven (arjanv@redhat.com) and
@@ -48,7 +48,7 @@ void cpuid (int CPU_number, int index,
} else {
/* Something went wrong, just do UP and hope for the best. */
nodriver = 1;
- if (!silent) {
+ if (!silent && nrCPUs != 1) {
perror(cpuname);
}
used_UP = 1;