Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236751
b: refs/heads/master
c: 1f427dd
h: refs/heads/master
i:
  236749: c42a9ce
  236747: b66bdd8
  236743: 978b10f
  236735: e16fb19
v: v3
  • Loading branch information
Ben Greear authored and John W. Linville committed Jan 21, 2011
1 parent fb267f6 commit 5b20287
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b305dae488193b65cfa80e1c06c0aa0ce60005a9
refs/heads/master: 1f427dd913a1bf61f2d124d12a022ca2f1d27f53
16 changes: 16 additions & 0 deletions trunk/drivers/net/wireless/ath/ath9k/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,16 @@ static const struct file_operations fops_wiphy = {
sc->debug.stats.txstats[WME_AC_VO].elem); \
} while(0)

#define PRX(str, elem) \
do { \
len += snprintf(buf + len, size - len, \
"%s%13u%11u%10u%10u\n", str, \
(unsigned int)(sc->tx.txq[WME_AC_BE].elem), \
(unsigned int)(sc->tx.txq[WME_AC_BK].elem), \
(unsigned int)(sc->tx.txq[WME_AC_VI].elem), \
(unsigned int)(sc->tx.txq[WME_AC_VO].elem)); \
} while(0)

static ssize_t read_file_xmit(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{
Expand Down Expand Up @@ -619,6 +629,12 @@ static ssize_t read_file_xmit(struct file *file, char __user *user_buf,
PR("TX-Pkts-All: ", tx_pkts_all);
PR("TX-Bytes-All: ", tx_bytes_all);

PRX("axq-qnum: ", axq_qnum);
PRX("axq-depth: ", axq_depth);
PRX("axq-stopped ", stopped);
PRX("tx-in-progress ", axq_tx_inprogress);
PRX("pending-frames ", pending_frames);

if (len > size)
len = size;

Expand Down

0 comments on commit 5b20287

Please sign in to comment.