diff options
author | Rui Paulo <rpaulo@FreeBSD.org> | 2013-08-11 06:57:57 +0000 |
---|---|---|
committer | Rui Paulo <rpaulo@FreeBSD.org> | 2013-08-11 06:57:57 +0000 |
commit | 957c6e86b1411564d1bba33b9035ef64309e4a9f (patch) | |
tree | 9d5ce7f96c699f7520a011b7a6038d3ab893bf4a /sys/dev/pci | |
parent | 899de76d2d898ad5563605e63e4aed4cc9b4aebf (diff) | |
download | src-957c6e86b1411564d1bba33b9035ef64309e4a9f.tar.gz src-957c6e86b1411564d1bba33b9035ef64309e4a9f.zip |
Use device_printf().
Notes
Notes:
svn path=/head/; revision=254207
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/fixup_pci.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/pci/fixup_pci.c b/sys/dev/pci/fixup_pci.c index 13fc4b15ffcc..3a40a7ab418e 100644 --- a/sys/dev/pci/fixup_pci.c +++ b/sys/dev/pci/fixup_pci.c @@ -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); } |