Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137855655
D50422.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D50422.diff
View Options
diff --git a/usr.sbin/pciconf/pciconf.c b/usr.sbin/pciconf/pciconf.c
--- a/usr.sbin/pciconf/pciconf.c
+++ b/usr.sbin/pciconf/pciconf.c
@@ -1153,7 +1153,7 @@
case 1:
db = (uint8_t *)(uintptr_t)((uintptr_t)pbm.pbm_map_base +
pbm.pbm_bar_off + start * width);
- for (a = 0; a < count; a += width, db++) {
+ for (a = 0; a < count; a++, db++) {
res = fwrite(db, width, 1, stdout);
if (res != 1) {
errx(1, "error writing to stdout");
@@ -1164,7 +1164,7 @@
case 2:
dh = (uint16_t *)(uintptr_t)((uintptr_t)pbm.pbm_map_base +
pbm.pbm_bar_off + start * width);
- for (a = 0; a < count; a += width, dh++) {
+ for (a = 0; a < count; a++, dh++) {
res = fwrite(dh, width, 1, stdout);
if (res != 1) {
errx(1, "error writing to stdout");
@@ -1175,7 +1175,7 @@
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, dd++) {
+ for (a = 0; a < count; a ++, dd++) {
res = fwrite(dd, width, 1, stdout);
if (res != 1) {
errx(1, "error writing to stdout");
@@ -1186,7 +1186,7 @@
case 8:
dx = (uint64_t *)(uintptr_t)((uintptr_t)pbm.pbm_map_base +
pbm.pbm_bar_off + start * width);
- for (a = 0; a < count; a += width, dx++) {
+ for (a = 0; a < count; a++, dx++) {
res = fwrite(dx, width, 1, stdout);
if (res != 1) {
errx(1, "error writing to stdout");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 27, 11:59 AM (20 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26254830
Default Alt Text
D50422.diff (1 KB)
Attached To
Mode
D50422: pciconf(8): Dump the correct number of bytes
Attached
Detach File
Event Timeline
Log In to Comment