I am working on project where I am storing and reading data from an SD card. During the initialization, I would like to print the full contents of the root directory - "/". The issue that I am running into is that there is a built-in delay in the logging buffer and since a pointer to a string is used, by the time that the string actually prints, the memory that stored the directory gets overwritten and this is no longer correct. One solution is to create a static buffer and fill it with the directory names but this is not practical if the root contains a lot of folders. Also, I was under the impression that the printed data gets stored in the UART buffer, which is configurable in sdk_config.h, but it seems like instead it just stores the pointer to the data structure, which gets updated by the time it is ready to print. I've observed the same issue in the fatfs example included in the SDK. Any ideas on how I can fix this would be hugely helpful. Thank you!