Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Oct 2013 21:42:48 +0000 (UTC)
From:      Peter Grehan <grehan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r256754 - stable/10/usr.sbin/bhyve
Message-ID:  <201310182142.r9ILgmTP032687@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



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