File tree 1 file changed +8
-8
lines changed
tools/testing/selftests/bpf 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -939,7 +939,7 @@ static void *dispatch_thread(void *ctx)
939
939
{
940
940
struct dispatch_data * data = ctx ;
941
941
int sock_fd ;
942
- FILE * log_fd = NULL ;
942
+ FILE * log_fp = NULL ;
943
943
944
944
sock_fd = data -> sock_fd ;
945
945
@@ -1002,8 +1002,8 @@ static void *dispatch_thread(void *ctx)
1002
1002
1003
1003
/* collect all logs */
1004
1004
if (msg_test_done .test_done .have_log ) {
1005
- log_fd = open_memstream (& result -> log_buf , & result -> log_cnt );
1006
- if (!log_fd )
1005
+ log_fp = open_memstream (& result -> log_buf , & result -> log_cnt );
1006
+ if (!log_fp )
1007
1007
goto error ;
1008
1008
1009
1009
while (true) {
@@ -1014,12 +1014,12 @@ static void *dispatch_thread(void *ctx)
1014
1014
if (msg_log .type != MSG_TEST_LOG )
1015
1015
goto error ;
1016
1016
1017
- fprintf (log_fd , "%s" , msg_log .test_log .log_buf );
1017
+ fprintf (log_fp , "%s" , msg_log .test_log .log_buf );
1018
1018
if (msg_log .test_log .is_last )
1019
1019
break ;
1020
1020
}
1021
- fclose (log_fd );
1022
- log_fd = NULL ;
1021
+ fclose (log_fp );
1022
+ log_fp = NULL ;
1023
1023
}
1024
1024
/* output log */
1025
1025
{
@@ -1045,8 +1045,8 @@ static void *dispatch_thread(void *ctx)
1045
1045
if (env .debug )
1046
1046
fprintf (stderr , "[%d]: Protocol/IO error: %s.\n" , data -> worker_id , strerror (errno ));
1047
1047
1048
- if (log_fd )
1049
- fclose (log_fd );
1048
+ if (log_fp )
1049
+ fclose (log_fp );
1050
1050
done :
1051
1051
{
1052
1052
struct msg msg_exit ;
You can’t perform that action at this time.
0 commit comments