Author: grehan
Date: Fri Oct 18 21:42:47 2013
New Revision: 256754
URL: http://svnweb.freebsd.org/changeset/base/256754

Log:
  MFC r256709:
  
    Eliminate unconditional debug printfs.
  
    Linux writes to these nominally read-only registers,
    so avoid having bhyve write warning messages to stdout
    when the reg writes can be safely ignored. Change the
    WPRINTF to DPRINTF which is conditional.
  
  Approved by:  re (gjb)

Modified:
  stable/10/usr.sbin/bhyve/pci_ahci.c
Directory Properties:
  stable/10/usr.sbin/bhyve/   (props changed)

Modified: stable/10/usr.sbin/bhyve/pci_ahci.c
==============================================================================
--- stable/10/usr.sbin/bhyve/pci_ahci.c Fri Oct 18 20:52:42 2013        
(r256753)
+++ stable/10/usr.sbin/bhyve/pci_ahci.c Fri Oct 18 21:42:47 2013        
(r256754)
@@ -1543,7 +1543,7 @@ pci_ahci_host_write(struct pci_ahci_soft
        case AHCI_PI:
        case AHCI_VS:
        case AHCI_CAP2:
-               WPRINTF("pci_ahci_host: read only registers 0x%"PRIx64"\n", 
offset);
+               DPRINTF("pci_ahci_host: read only registers 0x%"PRIx64"\n", 
offset);
                break;
        case AHCI_GHC:
                if (value & AHCI_GHC_HR)
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to