diff options
author | Pete Batard <pbatard@gmail.com> | 2010-09-20 13:28:04 +0100 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2010-09-20 13:28:04 +0100 |
commit | 94039837f6c8bbbf91f053bdecd8efaea236d6f2 (patch) | |
tree | 0c5431032f92674984e2fc38e1af6588221691e5 | |
parent | 3713ffddf43770b55c02792e0cc0cb19ce66a815 (diff) | |
download | libusb-94039837f6c8bbbf91f053bdecd8efaea236d6f2.tar.gz |
added libusb version display to xusbpbr302
-rw-r--r-- | examples/xusb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/xusb.c b/examples/xusb.c index e260153..742c931 100644 --- a/examples/xusb.c +++ b/examples/xusb.c @@ -742,6 +742,7 @@ int main(int argc, char** argv) bool show_help = false; bool got_vidpid = false; bool debug_mode = false; + const struct libusb_version* version; int j, r; size_t i, arglen; unsigned tmp_vid, tmp_pid; @@ -856,6 +857,8 @@ int main(int argc, char** argv) return 0; } + version = libusb_getversion(); + printf("Using libusb v%d.%d.%d.%d\n\n", version->major, version->minor, version->micro, version->nano); r = libusb_init(NULL); if (r < 0) return r; |