xtensa/esp32: Add option to disable raw esp-idf Wi-Fi log format
Summary
Add option to disable raw esp-idf Wi-Fi log format.
Impact
Try to fix log prefix being mixed from NuttX log device: https://github.com/apache/incubator-nuttx/issues/3157.
Testing
I don't think this is the right way to fix the issue. You are conditioning the printing to a very specific case which is not really useful to have. The asprintf is also kind of a hack, involving an allocation/de-allocation every time. As you mentioned, this problem is on the caller side on ESP32 wifi drivers and must be fixed there.
I don't think this is the right way to fix the issue. You are conditioning the printing to a very specific case which is not really useful to have. The asprintf is also kind of a hack, involving an allocation/de-allocation every time. As you mentioned, this problem is on the caller side on ESP32 wifi drivers and must be fixed there.
I agree with you, but our internal Wi-Fi team has a long plan, so I just can report this issue to them and when them select to do this is unknown, so I add this PR to hope this modification can do some help.