aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2015-03-15 21:12:05 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2015-03-15 21:12:05 +0000
commitcec45f04953b9c221e958da9ae6448bfa028e69f (patch)
tree96133e845d994e328a6b59b3bb654170e386f870 /sys
parent39060fa99270cf7987a7a16b79b627f4dccd49da (diff)
downloadsrc-cec45f04953b9c221e958da9ae6448bfa028e69f.tar.gz
src-cec45f04953b9c221e958da9ae6448bfa028e69f.zip
Fix some printfs(); add some debugging.
PR: kern/197143 Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
Notes
Notes: svn path=/head/; revision=280101
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/wpi/if_wpi.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/dev/wpi/if_wpi.c b/sys/dev/wpi/if_wpi.c
index b7889b1f86cb..11ed82a4f756 100644
--- a/sys/dev/wpi/if_wpi.c
+++ b/sys/dev/wpi/if_wpi.c
@@ -1172,8 +1172,10 @@ wpi_alloc_tx_ring(struct wpi_softc *sc, struct wpi_tx_ring *ring, int qid)
* to allocate commands space for other rings.
* XXX Do we really need to allocate descriptors for other rings?
*/
- if (qid > WPI_CMD_QUEUE_NUM)
+ if (qid > WPI_CMD_QUEUE_NUM) {
+ DPRINTF(sc, WPI_DEBUG_TRACE, TRACE_STR_END, __func__);
return 0;
+ }
size = WPI_TX_RING_COUNT * sizeof (struct wpi_tx_cmd);
error = wpi_dma_contig_alloc(sc, &ring->cmd_dma, (void **)&ring->cmd,
@@ -1991,8 +1993,8 @@ wpi_cmd_done(struct wpi_softc *sc, struct wpi_rx_desc *desc)
struct wpi_tx_ring *ring = &sc->txq[WPI_CMD_QUEUE_NUM];
struct wpi_tx_data *data;
- DPRINTF(sc, WPI_DEBUG_CMD, "cmd notification qid=%x idx=%d flags=%x "
- "type=%s len=%d\n", desc->qid, desc->idx,
+ DPRINTF(sc, WPI_DEBUG_CMD, "cmd notification qid %x idx %d flags %x "
+ "type %s len %d\n", desc->qid, desc->idx,
desc->flags, wpi_cmd_str(desc->type),
le32toh(desc->len));
@@ -3027,8 +3029,8 @@ wpi_cmd(struct wpi_softc *sc, int code, const void *buf, size_t size,
if (async == 0)
WPI_LOCK_ASSERT(sc);
- DPRINTF(sc, WPI_DEBUG_CMD, "wpi_cmd %s size %zu async %d\n",
- wpi_cmd_str(code), size, async);
+ DPRINTF(sc, WPI_DEBUG_CMD, "%s: cmd %s size %zu async %d\n",
+ __func__, wpi_cmd_str(code), size, async);
desc = &ring->desc[ring->cur];
data = &ring->data[ring->cur];
@@ -5343,7 +5345,7 @@ wpi_set_channel(struct ieee80211com *ic)
}
if ((error = wpi_send_rxon(sc, 0, 0)) != 0)
device_printf(sc->sc_dev,
- "%s: error %d settting channel\n", __func__,
+ "%s: error %d setting channel\n", __func__,
error);
}
WPI_UNLOCK(sc);