Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Use aprint_debug_dev(). Caught thanks to co...
details: https://anonhg.NetBSD.org/src/rev/1abace8b0dd6
branches: trunk
changeset: 756932:1abace8b0dd6
user: jym <jym%NetBSD.org@localhost>
date: Sat Aug 07 22:31:57 2010 +0000
description:
Use aprint_debug_dev(). Caught thanks to coccinelle.
diffstat:
sys/arch/x86/x86/est.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diffs (37 lines):
diff -r c917b0dcaaef -r 1abace8b0dd6 sys/arch/x86/x86/est.c
--- a/sys/arch/x86/x86/est.c Sat Aug 07 22:21:30 2010 +0000
+++ b/sys/arch/x86/x86/est.c Sat Aug 07 22:31:57 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: est.c,v 1.14 2010/05/23 22:06:38 christos Exp $ */
+/* $NetBSD: est.c,v 1.15 2010/08/07 22:31:57 jym Exp $ */
/*
* Copyright (c) 2003 Michael Eriksson.
* All rights reserved.
@@ -81,7 +81,7 @@
/* #define EST_DEBUG */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: est.c,v 1.14 2010/05/23 22:06:38 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: est.c,v 1.15 2010/08/07 22:31:57 jym Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1087,9 +1087,6 @@
int i, mv, rc;
size_t len, freq_len;
char *freq_names;
- const char *cpuname;
-
- cpuname = device_xname(curcpu()->ci_dev);
if (CPUID2FAMILY(curcpu()->ci_signature) == 15)
bus_clock = p4_get_bus_clock(curcpu());
@@ -1258,7 +1255,7 @@
i < est_fqlist->n - 1 ? " " : "");
}
- aprint_debug("%s: %s (%d mV) ", cpuname, est_desc, mv);
+ aprint_debug_dev(curcpu()->ci_dev, "%s (%d mV) ", est_desc, mv);
aprint_debug("%d (MHz): %s\n", MSR2MHZ(msr, bus_clock), freq_names);
/*
Home |
Main Index |
Thread Index |
Old Index