Skip to content

Commit 52abef2

Browse files
henrikbrixandersenkartben
authored andcommitted
usb: device: next: reduce log level for vendor requests
Reduce the log level from error to debug for received vendor requests. Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
1 parent b500f4c commit 52abef2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

subsys/usb/device_next/usbd_ch9.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -937,13 +937,13 @@ static int vendor_device_request(struct usbd_context *const uds_ctx,
937937
}
938938

939939
if (reqtype_is_to_device(setup) && vreq_nd->to_dev != NULL) {
940-
LOG_ERR("Vendor request 0x%02x to device", setup->bRequest);
940+
LOG_DBG("Vendor request 0x%02x to device", setup->bRequest);
941941
errno = vreq_nd->to_dev(uds_ctx, setup, buf);
942942
return 0;
943943
}
944944

945945
if (reqtype_is_to_host(setup) && vreq_nd->to_host != NULL) {
946-
LOG_ERR("Vendor request 0x%02x to host", setup->bRequest);
946+
LOG_DBG("Vendor request 0x%02x to host", setup->bRequest);
947947
errno = vreq_nd->to_host(uds_ctx, setup, buf);
948948
return 0;
949949
}

0 commit comments

Comments
 (0)