Skip to content

Commit 39155e7

Browse files
authored
ssl_client.cpp: Fix parameter name in _handle_error. (#5217)
1 parent f385ee4 commit 39155e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: libraries/WiFiClientSecure/src/ssl_client.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@
2525

2626
const char *pers = "esp32-tls";
2727

28-
static int _handle_error(int err, const char * file, int line)
28+
static int _handle_error(int err, const char * function, int line)
2929
{
3030
if(err == -30848){
3131
return err;
3232
}
3333
#ifdef MBEDTLS_ERROR_C
3434
char error_buf[100];
3535
mbedtls_strerror(err, error_buf, 100);
36-
log_e("[%s():%d]: (%d) %s", file, line, err, error_buf);
36+
log_e("[%s():%d]: (%d) %s", function, line, err, error_buf);
3737
#else
38-
log_e("[%s():%d]: code %d", file, line, err);
38+
log_e("[%s():%d]: code %d", function, line, err);
3939
#endif
4040
return err;
4141
}

0 commit comments

Comments
 (0)