Skip to content

Commit 69e180f

Browse files
committed
fix lint
1 parent e9b3f74 commit 69e180f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/zdtm/static/proc_task_comm.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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';

0 commit comments

Comments
 (0)