Fix word-size dumping.

Sponsored by:	The FreeBSD Foundation
MFC after:	12 days
This commit is contained in:
Konstantin Belousov 2018-08-03 18:30:02 +00:00
parent c50c8f642c
commit 4b8eaf1441
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=337268

View File

@ -1137,7 +1137,7 @@ dump_bar(const char *name, const char *reg, const char *bar_start,
case 4:
dd = (uint32_t *)(uintptr_t)((uintptr_t)pbm.pbm_map_base +
pbm.pbm_bar_off + start * width);
for (a = 0; a < count; a += width) {
for (a = 0; a < count; a += width, dd++) {
res = fwrite(dd, width, 1, stdout);
if (res != 1) {
errx(1, "error writing to stdout");