Subject: Adding a aprint_debug to the errata patch path
To: None <port-i386@NetBSD.org>
From: Bernd Ernesti <veego@NetBSD.org>
List: port-i386
Date: 09/30/2007 10:54:07
--82I3+IH0IqGh5yIs
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

I would like to commit the following patch, so it possible to see which
errata was patched, if you boot the kernel with the debug option.

Bernd


--82I3+IH0IqGh5yIs
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="errata.c.patch"

Index: errata.c
===================================================================
RCS file: /cvsroot/src/sys/arch/x86/x86/errata.c,v
retrieving revision 1.9
diff -b -u -r1.9 errata.c
--- errata.c	26 Sep 2007 19:48:43 -0000	1.9
+++ errata.c	30 Sep 2007 08:50:01 -0000
@@ -267,6 +267,8 @@
 	if ((val & e->e_data2) != 0)
 		return FALSE;
 	wrmsr_locked(e->e_data1, OPTERON_MSR_PASSCODE, val | e->e_data2);
+	aprint_debug("%s: erratum %d patched\n",
+	    ci->ci_dev->dv_xname, e->e_num);
 
 	return FALSE;
 }

--82I3+IH0IqGh5yIs--