File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -154,23 +154,22 @@ int main(int argc, char **argv)
154154 /* --- Verify dead thread fd: must be valid (F_GETFD check) --- */
155155 ret = fcntl (dead_thread_fd , F_GETFD );
156156 if (ret < 0 ) {
157- fail ("Dead thread fd %d is not valid after restore: %s " ,
158- dead_thread_fd , strerror ( errno ) );
157+ fail ("Dead thread fd %d is not valid after restore" ,
158+ dead_thread_fd );
159159 goto out ;
160160 }
161161 test_msg ("Dead thread fd %d is valid after restore\n" , dead_thread_fd );
162162
163163 /* --- Verify live thread fd: must read the correct tid --- */
164164 ret = lseek (live_thread_fd , 0 , SEEK_SET );
165165 if (ret < 0 ) {
166- fail ("lseek failed on live thread fd: %s" , strerror ( errno ) );
166+ fail ("lseek failed on live thread fd" );
167167 goto out ;
168168 }
169169
170170 ret = read (live_thread_fd , buf , sizeof (buf ) - 1 );
171171 if (ret <= 0 ) {
172- fail ("read failed on live thread fd: %d (%s)" ,
173- ret , strerror (errno ));
172+ fail ("read failed on live thread fd: %d" , ret );
174173 goto out ;
175174 }
176175 buf [ret ] = '\0' ;
You can’t perform that action at this time.
0 commit comments