Lines Matching full:serial
86 static void check_ms_os_desc_v1(libusb_device_handle* device_handle, const std::string& serial) { in check_ms_os_desc_v1() argument
156 errx(1, "failed to find v1 MS OS descriptor specifying WinUSB for device %s", serial.c_str()); in check_ms_os_desc_v1()
159 static void check_ms_os_desc_v2(libusb_device_handle* device_handle, const std::string& serial) { in check_ms_os_desc_v2() argument
164 fprintf(stderr, "failed to get bos descriptor for device %s\n", serial.c_str()); in check_ms_os_desc_v2()
234 std::optional<std::string> serial = in main() local
236 if (!serial) { in main()
237 errx(1, "failed to get serial for device %u:%u", libusb_get_bus_number(device), in main()
241 if (expected_serial && *serial != expected_serial) { in main()
242 fprintf(stderr, "skipping %s (wanted %s)\n", serial->c_str(), expected_serial); in main()
248 fprintf(stderr, "fetching v1 OS descriptor from device %s\n", serial->c_str()); in main()
249 check_ms_os_desc_v1(device_handle, *serial); in main()
250 fprintf(stderr, "found v1 OS descriptor for device %s\n", serial->c_str()); in main()
254 fprintf(stderr, "fetching v2 OS descriptor from device %s\n", serial->c_str()); in main()
255 check_ms_os_desc_v2(device_handle, *serial); in main()
261 errx(1, "failed to find device with serial %s", expected_serial); in main()