Skip to content

Commit 471d2b8

Browse files
committed
usb: Fix printf format in debug string
The parameter is a uint16_t, therefore the format specifier should be %hu and not %hhu. Signed-off-by: Paul Cercueil <[email protected]>
1 parent 758ba58 commit 471d2b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ static struct iio_context * usb_create_context(unsigned int bus,
928928

929929
pdata->nb_ep_couples = iface->bNumEndpoints / 2;
930930

931-
IIO_DEBUG("Found %hhu usable i/o endpoint couples\n", pdata->nb_ep_couples);
931+
IIO_DEBUG("Found %hu usable i/o endpoint couples\n", pdata->nb_ep_couples);
932932

933933
pdata->io_endpoints = calloc(pdata->nb_ep_couples,
934934
sizeof(*pdata->io_endpoints));

0 commit comments

Comments
 (0)