@@ -20,10 +20,10 @@ ZTEST_USER_F(net_socketpair, test_write_nonblock)
20
20
21
21
/* then set the O_NONBLOCK flag */
22
22
res = zsock_fcntl (fixture -> sv [i ], F_GETFL , 0 );
23
- zassert_not_equal (res , -1 , "fcntl() failed: %d" , i , errno );
23
+ zassert_not_equal (res , -1 , "fcntl() %d failed: %d" , i , errno );
24
24
25
25
res = zsock_fcntl (fixture -> sv [i ], F_SETFL , res | O_NONBLOCK );
26
- zassert_not_equal (res , -1 , "fcntl() failed: %d" , i , errno );
26
+ zassert_not_equal (res , -1 , "fcntl() %d failed: %d" , i , errno );
27
27
28
28
/* then, try to write one more byte */
29
29
res = zsock_send (fixture -> sv [i ], "x" , 1 , 0 );
@@ -41,10 +41,10 @@ ZTEST_USER_F(net_socketpair, test_read_nonblock)
41
41
for (size_t i = 0 ; i < 2 ; ++ i ) {
42
42
/* set the O_NONBLOCK flag */
43
43
res = zsock_fcntl (fixture -> sv [i ], F_GETFL , 0 );
44
- zassert_not_equal (res , -1 , "fcntl() failed: %d" , i , errno );
44
+ zassert_not_equal (res , -1 , "fcntl() %d failed: %d" , i , errno );
45
45
46
46
res = zsock_fcntl (fixture -> sv [i ], F_SETFL , res | O_NONBLOCK );
47
- zassert_not_equal (res , -1 , "fcntl() failed: %d" , i , errno );
47
+ zassert_not_equal (res , -1 , "fcntl() %d failed: %d" , i , errno );
48
48
49
49
/* then, try to read one byte */
50
50
res = zsock_recv (fixture -> sv [i ], & c , 1 , 0 );
0 commit comments