Fix e_f to print the saved errno.
Change-Id: I1ee366717759429f4c62432395344aa924f03183
This commit is contained in:
parent
e7855d00ef
commit
cde59bcba6
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ void e_f(char *file, int line, int n)
|
|||
err_number = errno; /* Store before printf can clobber it */
|
||||
if (errct == 0) printf("\n"); /* finish header */
|
||||
printf("%s:%d: Subtest %d, error %d, errno %d: %s\n",
|
||||
file, line, subtest, n, errno, strerror(errno));
|
||||
file, line, subtest, n, err_number, strerror(err_number));
|
||||
if (++errct > max_error) {
|
||||
printf("Too many errors; test aborted\n");
|
||||
cleanup();
|
||||
|
|
Loading…
Reference in a new issue