Print large unsigned values correctly (not as negative numbers) for
subdevice with 32 bit values.
This commit is contained in:
parent
8db3fa8f47
commit
f80c83a1d0
1 changed files with 2 additions and 2 deletions
|
@ -77,11 +77,11 @@ int main(int argc, char *argv[])
|
||||||
range_info->unit);
|
range_info->unit);
|
||||||
}
|
}
|
||||||
if(options.verbose) {
|
if(options.verbose) {
|
||||||
printf(" (%d raw units)", data);
|
printf(" (%lu raw units)", (unsigned long)data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
printf("%d",data);
|
printf("%lu", (unsigned long)data);
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue