Skip to content

Commit

Permalink
cleanup: avoid too-new strerrorname_np
Browse files Browse the repository at this point in the history
  • Loading branch information
abower-amd committed Dec 19, 2023
1 parent 11be235 commit f56c4b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/sfptpd_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,16 +141,16 @@ int main(int argc, char **argv)
}

printf("\nUNIT TEST RESULTS SUMMARY\n\n");
printf("| | Unit test | Run | Result |\n");
printf("| -- | ----------- | ------- | ------------ |\n");
printf("| | Unit test | Run | Result |\n");
printf("| -- | ----------- | ------- | ------------------------- |\n");
for (i = 0; i < num_unit_tests; i++) {
struct sfptpd_unit_test *ut = unit_tests + i;

printf("| %2d | %-11s | %-7s | %-12s |\n",
printf("| %2d | %-11s | %-7s | %-25.25s |\n",
i, ut->name,
ut->run ? "Run" : "Not run",
ut->run ? (ut->result == 0 ? "Pass" :
strerrorname_np(ut->result)) :
strerror(ut->result)) :
"");
}

Expand Down

0 comments on commit f56c4b4

Please sign in to comment.