[LTP] [PATCH v2] syscalls/pread02: Convert to new API and merge pread03 into pread02

Cyril Hrubis chrubis@suse.cz
Thu Nov 18 14:12:58 CET 2021


Hi!
Merged with a minor update to the message below, thanks.

> +	TST_EXP_FAIL2(pread(*tc->fd, &buf, tc->nb, tc->offst), tc->exp_errno,
> +		"pread(%d, %zu, %ld, %s, %d)", *tc->fd, tc->nb, tc->offst, tc->desc, tc->exp_errno);

The description message is not passed to the call as a parameter and
there is no point to print the expected errno, the TST_EXP_FAIL2() macro
will do that for you. So the format string and parameters were changed
accordingly.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list