未验证 提交 39155e70 编写于 作者: R rolsen 提交者: GitHub

ssl_client.cpp: Fix parameter name in _handle_error. (#5217)

上级 f385ee42
......@@ -25,7 +25,7 @@
const char *pers = "esp32-tls";
static int _handle_error(int err, const char * file, int line)
static int _handle_error(int err, const char * function, int line)
{
if(err == -30848){
return err;
......@@ -33,9 +33,9 @@ static int _handle_error(int err, const char * file, int line)
#ifdef MBEDTLS_ERROR_C
char error_buf[100];
mbedtls_strerror(err, error_buf, 100);
log_e("[%s():%d]: (%d) %s", file, line, err, error_buf);
log_e("[%s():%d]: (%d) %s", function, line, err, error_buf);
#else
log_e("[%s():%d]: code %d", file, line, err);
log_e("[%s():%d]: code %d", function, line, err);
#endif
return err;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册