diff --git a/examples/peripherals/usb/host/msc/main/msc_example_main.c b/examples/peripherals/usb/host/msc/main/msc_example_main.c index 773a049281..eb934a5681 100644 --- a/examples/peripherals/usb/host/msc/main/msc_example_main.c +++ b/examples/peripherals/usb/host/msc/main/msc_example_main.c @@ -10,6 +10,7 @@ #include #include #include +#include "sdkconfig.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/queue.h" @@ -103,9 +104,11 @@ static void print_device_info(msc_host_device_info_t *info) printf("\t Sector count: %"PRIu32"\n", info->sector_count); printf("\t PID: 0x%04X \n", info->idProduct); printf("\t VID: 0x%04X \n", info->idVendor); +#ifndef CONFIG_NEWLIB_NANO_FORMAT wprintf(L"\t iProduct: %S \n", info->iProduct); wprintf(L"\t iManufacturer: %S \n", info->iManufacturer); wprintf(L"\t iSerialNumber: %S \n", info->iSerialNumber); +#endif } static void file_operations(void)