mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-07 21:33:54 +00:00
fix(usb): correct type in message
pdev->request.bm_request is unsigned, use %u. Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: Idaadb8440d0b56bcfa02abd7c94a4ab59f5e15ee
This commit is contained in:
parent
bdc88d2154
commit
bd9cd63ba0
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2021, STMicroelectronics - All Rights Reserved
|
||||
* Copyright (c) 2021-2022, STMicroelectronics - All Rights Reserved
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
@ -362,7 +362,7 @@ static enum usb_status usb_core_setup_stage(struct usb_handle *pdev,
|
|||
|
||||
case USB_REQ_RECIPIENT_ENDPOINT:
|
||||
default:
|
||||
ERROR("receive unsupported request %i",
|
||||
ERROR("receive unsupported request %u",
|
||||
pdev->request.bm_request & USB_REQ_RECIPIENT_MASK);
|
||||
usb_core_set_stall(pdev, pdev->request.bm_request & USB_REQ_DIRECTION);
|
||||
return USBD_FAIL;
|
||||
|
|
Loading…
Add table
Reference in a new issue