diff options
author | Tormod Volden <debian.tormod@gmail.com> | 2023-01-21 13:59:13 +0100 |
---|---|---|
committer | Tormod Volden <debian.tormod@gmail.com> | 2023-01-21 14:03:07 +0100 |
commit | 9e077421b8708d98c8d423423bd6678dca0ef2ae (patch) | |
tree | 2352f9484b3328f025e3c3955ff4fd7ebdd3c925 | |
parent | 5b7d57e61a76c9f2c3018a807016ddd311fbf28a (diff) | |
download | libusb-9e077421b8708d98c8d423423bd6678dca0ef2ae.tar.gz |
xusb: Add newlines in mass-storage test output
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
-rw-r--r-- | examples/xusb.c | 8 | ||||
-rw-r--r-- | libusb/version_nano.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/xusb.c b/examples/xusb.c index 39a96fb..426ce20 100644 --- a/examples/xusb.c +++ b/examples/xusb.c @@ -465,7 +465,7 @@ static int test_mass_storage(libusb_device_handle *handle, uint8_t endpoint_in, unsigned char *data; FILE *fd; - printf("Reading Max LUN:\n"); + printf("\nReading Max LUN:\n"); r = libusb_control_transfer(handle, LIBUSB_ENDPOINT_IN|LIBUSB_REQUEST_TYPE_CLASS|LIBUSB_RECIPIENT_INTERFACE, BOMS_GET_MAX_LUN, 0, 0, &lun, 1, 1000); // Some devices send a STALL instead of the actual value. @@ -478,7 +478,7 @@ static int test_mass_storage(libusb_device_handle *handle, uint8_t endpoint_in, printf(" Max LUN = %d\n", lun); // Send Inquiry - printf("Sending Inquiry:\n"); + printf("\nSending Inquiry:\n"); memset(buffer, 0, sizeof(buffer)); memset(cdb, 0, sizeof(cdb)); cdb[0] = 0x12; // Inquiry @@ -502,7 +502,7 @@ static int test_mass_storage(libusb_device_handle *handle, uint8_t endpoint_in, } // Read capacity - printf("Reading Capacity:\n"); + printf("\nReading Capacity:\n"); memset(buffer, 0, sizeof(buffer)); memset(cdb, 0, sizeof(cdb)); cdb[0] = 0x25; // Read Capacity @@ -526,7 +526,7 @@ static int test_mass_storage(libusb_device_handle *handle, uint8_t endpoint_in, } // Send Read - printf("Attempting to read %u bytes:\n", block_size); + printf("\nAttempting to read %u bytes:\n", block_size); memset(cdb, 0, sizeof(cdb)); cdb[0] = 0x28; // Read(10) diff --git a/libusb/version_nano.h b/libusb/version_nano.h index dd05afa..a990ae7 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11777 +#define LIBUSB_NANO 11778 |