Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 May 2016 04:02:13 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r300182 - head/sys/dev/siba
Message-ID:  <201605190402.u4J42DoH057748@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Thu May 19 04:02:13 2016
New Revision: 300182
URL: https://svnweb.freebsd.org/changeset/base/300182

Log:
  [siba] fix up some comments and debug output.

Modified:
  head/sys/dev/siba/siba_core.c

Modified: head/sys/dev/siba/siba_core.c
==============================================================================
--- head/sys/dev/siba/siba_core.c	Thu May 19 04:01:33 2016	(r300181)
+++ head/sys/dev/siba/siba_core.c	Thu May 19 04:02:13 2016	(r300182)
@@ -335,7 +335,7 @@ siba_scan(struct siba_softc *siba)
 		sd->sd_coreidx = i;
 
 		DPRINTF(siba, SIBA_DEBUG_SCAN,
-		    "core %d (%s) found (cc %#xrev %#x vendor %#x)\n",
+		    "core %d (%s) found (cc %#x rev %#x vendor %#x)\n",
 		    i, siba_core_name(sd->sd_id.sd_device),
 		    sd->sd_id.sd_device, sd->sd_id.sd_rev,
 		    sd->sd_id.sd_vendor);
@@ -430,6 +430,7 @@ siba_pci_switchcore_sub(struct siba_soft
 			return (0);
 		DELAY(10);
 	}
+	DPRINTF(siba, SIBA_DEBUG_SWITCHCORE, "%s: idx %d, failed\n", __func__, idx);
 	return (ENODEV);
 #undef RETRY_MAX
 }
@@ -2184,6 +2185,8 @@ siba_dma_translation(device_t dev)
 	KASSERT(siba->siba_type == SIBA_TYPE_PCI,
 	    ("unsupported bustype %d\n", siba->siba_type));
 #endif
+
+	/* Default */
 	return (SIBA_PCI_DMA);
 }
 



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