i2cdump double the word count if using -w

Bug #1947140 reported by cdannebe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
i2c-tools (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi
i2cdump doubles the count of words if I use a range with option -w.

The reason is line 471 in version 4.2-2:
for (j = 0; j < 8; j++) {
 /* Skip unwanted registers */

if you read word wise, you should count word wise.

for (j = 0; j < 8; j+=2) {
 /* Skip unwanted registers */

Regards and many thanks for your work, Christian.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.