Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Aug 2018 18:30:02 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r337268 - head/usr.sbin/pciconf
Message-ID:  <201808031830.w73IU27D002235@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Fri Aug  3 18:30:02 2018
New Revision: 337268
URL: https://svnweb.freebsd.org/changeset/base/337268

Log:
  Fix word-size dumping.
  
  Sponsored by:	The FreeBSD Foundation
  MFC after:	12 days

Modified:
  head/usr.sbin/pciconf/pciconf.c

Modified: head/usr.sbin/pciconf/pciconf.c
==============================================================================
--- head/usr.sbin/pciconf/pciconf.c	Fri Aug  3 17:14:52 2018	(r337267)
+++ head/usr.sbin/pciconf/pciconf.c	Fri Aug  3 18:30:02 2018	(r337268)
@@ -1137,7 +1137,7 @@ dump_bar(const char *name, const char *reg, const char
 	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");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808031830.w73IU27D002235>