svn commit: r312616 - head/tools/tools/ath/athalq

Adrian Chadd adrian at FreeBSD.org
Sun Jan 22 06:25:43 UTC 2017


Author: adrian
Date: Sun Jan 22 06:25:41 2017
New Revision: 312616
URL: https://svnweb.freebsd.org/changeset/base/312616

Log:
  [athalq] print out unsigned tx timestamps.

Modified:
  head/tools/tools/ath/athalq/ar9300_ds.c

Modified: head/tools/tools/ath/athalq/ar9300_ds.c
==============================================================================
--- head/tools/tools/ath/athalq/ar9300_ds.c	Sun Jan 22 06:17:31 2017	(r312615)
+++ head/tools/tools/ath/athalq/ar9300_ds.c	Sun Jan 22 06:25:41 2017	(r312616)
@@ -62,7 +62,7 @@ ar9300_decode_txstatus(struct if_ath_alq
 	/* XXX assumes txs is smaller than PAYLOAD_LEN! */
 	memcpy(&txs, &a->payload, sizeof(struct ar9300_txs));
 
-	printf("[%u.%06u] [%llu] TXSTATUS TxTimestamp=%d, DescId=0x%04x, QCU=%d\n",
+	printf("[%u.%06u] [%llu] TXSTATUS TxTimestamp=%u, DescId=0x%04x, QCU=%d\n",
 	    (unsigned int) be32toh(a->hdr.tstamp_sec),
 	    (unsigned int) be32toh(a->hdr.tstamp_usec),
 	    (unsigned long long) be64toh(a->hdr.threadid),
@@ -77,7 +77,7 @@ ar9300_decode_txstatus(struct if_ath_alq
 	    MS(txs.ds_info, AR_ctrl_stat),
 	    MS(txs.ds_info, AR_desc_id));
 
-	printf("    TxTimestamp: %d\n", txs.status4);
+	printf("    TxTimestamp: %u\n", txs.status4);
 
 	printf("    TxDone=%d, SeqNo=%d, TxOpExceed=%d, TXBFStatus=%d\n",
 	    MF(txs.status8, AR_tx_done),


More information about the svn-src-all mailing list