Page 1 of 1

USB debug log: how to disable?

Posted: Wed Mar 27, 2024 8:56 am
by robizzar72
Hi, I'am usign ESP-IDF 5 on ESP32-S3.

Using its USB for read a pen-drive, when it is connected I got this extra output on uart console:

Code: Select all

I (19714) USB: MSC device connected
*** Device descriptor ***
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0x0
bDeviceSubClass 0x0
...
How can I disable it?
General Log level is set to Info (ESP_LOGI).
Thanks!!!

Re: USB debug log: how to disable?

Posted: Thu Mar 28, 2024 3:45 am
by chegewara
robizzar72 wrote:
Wed Mar 27, 2024 8:56 am
Hi, I'am usign ESP-IDF 5 on ESP32-S3.

Using its USB for read a pen-drive, when it is connected I got this extra output on uart console:

*** Device descriptor ***
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0x0
bDeviceSubClass 0x0
...
[/code]

How can I disable it?
General Log level is set to Info (ESP_LOGI).
Thanks!!!
These are not part of ESP_LOGx, its just printf in code.
Just remove this line
https://github.com/espressif/esp-idf/bl ... iver.c#L91