Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Aug 2013 06:57:57 +0000 (UTC)
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r254207 - head/sys/dev/pci
Message-ID:  <201308110657.r7B6vvUC005919@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rpaulo
Date: Sun Aug 11 06:57:57 2013
New Revision: 254207
URL: http://svnweb.freebsd.org/changeset/base/254207

Log:
  Use device_printf().

Modified:
  head/sys/dev/pci/fixup_pci.c

Modified: head/sys/dev/pci/fixup_pci.c
==============================================================================
--- head/sys/dev/pci/fixup_pci.c	Sun Aug 11 03:39:28 2013	(r254206)
+++ head/sys/dev/pci/fixup_pci.c	Sun Aug 11 06:57:57 2013	(r254207)
@@ -92,13 +92,13 @@ fixwsc_natoma(device_t dev)
     pmccfg = pci_read_config(dev, 0x50, 2);
 #if defined(SMP)
     if (pmccfg & 0x8000) {
-	printf("Correcting Natoma config for SMP\n");
+	device_printf(dev, "correcting Natoma config for SMP\n");
 	pmccfg &= ~0x8000;
 	pci_write_config(dev, 0x50, pmccfg, 2);
     }
 #else
     if ((pmccfg & 0x8000) == 0) {
-	printf("Correcting Natoma config for non-SMP\n");
+	device_printf(dev, "correcting Natoma config for non-SMP\n");
 	pmccfg |= 0x8000;
 	pci_write_config(dev, 0x50, pmccfg, 2);
     }
@@ -132,7 +132,8 @@ fixc1_nforce2(device_t dev)
 	    pci_get_function(dev) == 0) {
 		val = pci_read_config(dev, 0x6c, 4);
 		if (val & 0x000e0000) {
-			printf("Correcting nForce2 C1 CPU disconnect hangs\n");
+			device_printf(dev, 
+			    "correcting nForce2 C1 CPU disconnect hangs\n");
 			val &= ~0x000e0000;
 			pci_write_config(dev, 0x6c, val, 4);
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308110657.r7B6vvUC005919>