Skip to content

Commit

Permalink
usb: Fix printf format in debug string
Browse files Browse the repository at this point in the history
The parameter is a uint16_t, therefore the format specifier should be
%hu and not %hhu.

Signed-off-by: Paul Cercueil <[email protected]>
  • Loading branch information
pcercuei committed Nov 16, 2021
1 parent 758ba58 commit 471d2b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ static struct iio_context * usb_create_context(unsigned int bus,

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

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

pdata->io_endpoints = calloc(pdata->nb_ep_couples,
sizeof(*pdata->io_endpoints));
Expand Down

0 comments on commit 471d2b8

Please sign in to comment.