diff --git a/drivers/usbdev/adb.c b/drivers/usbdev/adb.c index d9ceb3c2bd..010fd92233 100644 --- a/drivers/usbdev/adb.c +++ b/drivers/usbdev/adb.c @@ -1147,7 +1147,7 @@ static int usbclass_setup(FAR struct usbdevclass_driver_s *driver, len = GETUINT16(ctrl->len); uinfo("type=%02x req=%02x value=%04x index=%04x len=%04x\n", - ctrl->type, ctrl->req, value, index, len); + ctrl->type, ctrl->req, value, GETUINT16(ctrl->index), len); switch (ctrl->type & USB_REQ_TYPE_MASK) {