common: Log the libusb release when running with debugging output.

This commit is contained in:
Solomon Peachy 2014-02-11 16:40:11 -05:00
parent 59917b8d35
commit 5a4ff83750

View file

@ -615,6 +615,13 @@ int main (int argc, char **argv)
}
}
if (dyesub_debug) {
const struct libusb_version *ver;
ver = libusb_get_version();
DEBUG(" ** running with libusb %d.%d.%d%s (%d)\n",
ver->major, ver->minor, ver->micro, (ver->rc? ver->rc : ""), ver->nano );
}
/* Make sure a filename was specified */
if (!unk && (optind == argc || !argv[optind])) {
print_help(argv[0], backend);