diff options
author | Chris Dickens <christopher.a.dickens@gmail.com> | 2020-01-13 12:23:02 -0800 |
---|---|---|
committer | Chris Dickens <christopher.a.dickens@gmail.com> | 2020-01-13 12:36:59 -0800 |
commit | 88ded79caa4c388739de140d709ccba6397ddd14 (patch) | |
tree | 72d0a757bb42fd98d7f171504a602c47042107dc /msvc/testlibusb_2013.vcxproj | |
parent | 0bf84e4d516c4488e5fcf4b10e3a7263c13019e1 (diff) | |
download | libusb-88ded79caa4c388739de140d709ccba6397ddd14.tar.gz |
examples: testlibusb: Formatting, whitespace and functional cleanup
Make the coding style and whitespace consistent with the rest of the
library source code.
In the print_device() function, the 'level' argument is unnecessary, so
remove it and the associated space padding. Switch to use printf()
directly instead of formatting the description into a single buffer.
This not only simplifies the code but avoids truncating the description
for devices with larger descriptor strings.
Make the output formatting consistent by lining up all the printed
values and using the same notation for all hexadecimal values.
Inspired by PR #452, enable printing all available BOS device
capability descriptors, not just the first one.
Closes #452
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'msvc/testlibusb_2013.vcxproj')
0 files changed, 0 insertions, 0 deletions