svn commit: r194872 - head/tools/tools/ath/athpoke

Sam Leffler sam at FreeBSD.org
Wed Jun 24 18:24:20 UTC 2009


Author: sam
Date: Wed Jun 24 18:24:20 2009
New Revision: 194872
URL: http://svn.freebsd.org/changeset/base/194872

Log:
  read back the written value and display

Modified:
  head/tools/tools/ath/athpoke/athpoke.c

Modified: head/tools/tools/ath/athpoke/athpoke.c
==============================================================================
--- head/tools/tools/ath/athpoke/athpoke.c	Wed Jun 24 18:21:37 2009	(r194871)
+++ head/tools/tools/ath/athpoke/athpoke.c	Wed Jun 24 18:24:20 2009	(r194872)
@@ -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;
 }


More information about the svn-src-head mailing list