Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Oct 2013 21:56:39 +0000 (UTC)
From:      Peter Grehan <grehan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r256709 - head/usr.sbin/bhyve
Message-ID:  <201310172156.r9HLudff069722@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: grehan
Date: Thu Oct 17 21:56:39 2013
New Revision: 256709
URL: http://svnweb.freebsd.org/changeset/base/256709

Log:
  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.
  
  Reviewed by:	mav
  Discussed with:	mav, Zhixiang Yu
  MFC after:	3 days

Modified:
  head/usr.sbin/bhyve/pci_ahci.c

Modified: head/usr.sbin/bhyve/pci_ahci.c
==============================================================================
--- head/usr.sbin/bhyve/pci_ahci.c	Thu Oct 17 21:38:14 2013	(r256708)
+++ head/usr.sbin/bhyve/pci_ahci.c	Thu Oct 17 21:56:39 2013	(r256709)
@@ -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?201310172156.r9HLudff069722>