summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2009-06-24 18:24:20 +0000
committersam <sam@FreeBSD.org>2009-06-24 18:24:20 +0000
commit44a9eae2660399d5972ede25204807a85e9a4231 (patch)
tree3e847d8dfce107a2e351ec016e6d57599a09d035 /tools
parent17732421076935a7d2072f52c7a30754ed31f34b (diff)
downloadFreeBSD-src-44a9eae2660399d5972ede25204807a85e9a4231.zip
FreeBSD-src-44a9eae2660399d5972ede25204807a85e9a4231.tar.gz
read back the written value and display
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/ath/athpoke/athpoke.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/tools/ath/athpoke/athpoke.c b/tools/tools/ath/athpoke/athpoke.c
index 2d87154..82ec550 100644
--- a/tools/tools/ath/athpoke/athpoke.c
+++ b/tools/tools/ath/athpoke/athpoke.c
@@ -105,8 +105,7 @@ main(int argc, char *argv[])
reg = (dr != NULL) ? dr->addr : (uint32_t) strtoul(argv[0], NULL, 0);
if (cp != NULL)
regwrite(s, &atd, reg, (uint32_t) strtoul(cp, NULL, 0));
- else
- printf("%s = %08x\n", argv[0], regread(s, &atd, reg));
+ printf("%s = %08x\n", argv[0], regread(s, &atd, reg));
}
return 0;
}
OpenPOWER on IntegriCloud