projects
/
visomat-utils.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6630769
)
visomat-data-downloader: fix format strings
author
Antonio Ospite <ao2@ao2.it>
Sat, 9 Jan 2016 16:25:57 +0000
(17:25 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Sat, 9 Jan 2016 16:25:57 +0000
(17:25 +0100)
src/visomat-data-downloader.c
patch
|
blob
|
history
diff --git
a/src/visomat-data-downloader.c
b/src/visomat-data-downloader.c
index
97da8e8
..
b0a8007
100644
(file)
--- a/
src/visomat-data-downloader.c
+++ b/
src/visomat-data-downloader.c
@@
-357,7
+357,7
@@
int main(void)
if (ret < 0) {
fprintf(stderr, "libusb_set_configuration failed: %s\n",
libusb_error_name(ret));
if (ret < 0) {
fprintf(stderr, "libusb_set_configuration failed: %s\n",
libusb_error_name(ret));
- fprintf(stderr, "Cannot set configuration %
hhu
\n",
+ fprintf(stderr, "Cannot set configuration %
d
\n",
VISOMAT_CONFIGURATION);
goto out_libusb_close;
}
VISOMAT_CONFIGURATION);
goto out_libusb_close;
}
@@
-369,7
+369,7
@@
int main(void)
if (ret < 0) {
fprintf(stderr, "libusb_claim_interface failed: %s\n",
libusb_error_name(ret));
if (ret < 0) {
fprintf(stderr, "libusb_claim_interface failed: %s\n",
libusb_error_name(ret));
- fprintf(stderr, "Cannot claim interface %
hhu
\n",
+ fprintf(stderr, "Cannot claim interface %
d
\n",
VISOMAT_INTERFACE);
goto out_libusb_close;
}
VISOMAT_INTERFACE);
goto out_libusb_close;
}
@@
-386,7
+386,7
@@
int main(void)
}
if (current_configuration != VISOMAT_CONFIGURATION) {
}
if (current_configuration != VISOMAT_CONFIGURATION) {
- fprintf(stderr, "libusb configuration changed (expected: %
hhu, current: %hhu
\n",
+ fprintf(stderr, "libusb configuration changed (expected: %
d, current: %d
\n",
VISOMAT_CONFIGURATION, current_configuration);
ret = -EINVAL;
goto out_libusb_release_interface;
VISOMAT_CONFIGURATION, current_configuration);
ret = -EINVAL;
goto out_libusb_release_interface;