ESP-IDF Log Error: Format '%s' expects a matching 'char *' argument
This error is caused by the log output statement within the 'user_nvs_wifi_login' function using the '%s' format specifier without providing a corresponding 'char *' type argument. This could be due to incorrect parameter passing or missing parameters.
To resolve this error, you need to inspect the log output statement within the 'user_nvs_wifi_login' function and make sure that the correct parameters are supplied. If parameters are missing, you need to add them. Additionally, you should verify that the format string within the log output statement is correct and that all format placeholders have corresponding parameters.
Alternatively, you can consider removing the '-Werror=format=' option from your compilation settings. This will prevent the compiler from treating format errors as errors and will output them as warnings instead. While this allows compilation to pass, it's crucial to ensure that the log output statement's format is correct to avoid potential errors.
原文地址: https://www.cveoy.top/t/topic/bFSG 著作权归作者所有。请勿转载和采集!