diff options
author | adrian <adrian@FreeBSD.org> | 2012-04-04 20:46:20 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2012-04-04 20:46:20 +0000 |
commit | a544afcdc9d3f9e2c5d72aa46fa41c64fa023a55 (patch) | |
tree | 9efe7237c9b3a31412de8efcfe59b8ca7caa56a5 /tools | |
parent | 3eaf24f2ead51f3b0269d7b243e57eed1358e9fd (diff) | |
download | FreeBSD-src-a544afcdc9d3f9e2c5d72aa46fa41c64fa023a55.zip FreeBSD-src-a544afcdc9d3f9e2c5d72aa46fa41c64fa023a55.tar.gz |
Add a threadid to the ah_decode API.
This adds the current thread ID to each logged register and mark entry,
allowing for easier debugging of concurrent/overlapping NIC operations.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/tools/ath/athdecode/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tools/ath/athdecode/main.c b/tools/tools/ath/athdecode/main.c index 4d05447..1ab5c6d 100644 --- a/tools/tools/ath/athdecode/main.c +++ b/tools/tools/ath/athdecode/main.c @@ -375,7 +375,7 @@ oprw(FILE *fd, int recnum, struct athregrec *r) const char* bits; int i; - fprintf(fd, "\n%05d: ", recnum); + fprintf(fd, "\n%05d: [%d] ", recnum, r->threadid); dr = findreg(r->reg); if (dr != NULL && dr->name != NULL) { snprintf(buf, sizeof (buf), "AR_%s (0x%x)", dr->name, r->reg); |