From 54326eda065e18c8c237736f52aac7077bb01b2d Mon Sep 17 00:00:00 2001 From: paipeng-g Date: Mon, 13 May 2024 17:15:14 -0700 Subject: [PATCH] Update htool_usb.c for format --- examples/htool_usb.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/htool_usb.c b/examples/htool_usb.c index 0674b63..cedc249 100644 --- a/examples/htool_usb.c +++ b/examples/htool_usb.c @@ -100,11 +100,12 @@ static void print_device(void* cb_param, libusb_device* dev, goto cleanup; } char product_name[512]; - int rv_or_len = libusb_get_string_descriptor_ascii(dev_handle, descriptor->iProduct, - (unsigned char*)product_name, - sizeof(product_name)); + int rv_or_len = libusb_get_string_descriptor_ascii( + dev_handle, descriptor->iProduct, (unsigned char*)product_name, + sizeof(product_name)); if (rv_or_len < 0) { - fprintf(stderr, " (unable to get product string: %s)", libusb_strerror(rv_or_len)); + fprintf(stderr, " (unable to get product string: %s)", + libusb_strerror(rv_or_len)); goto cleanup2; } // valid product_name is returned