tests: use sprintrc in vhangup.test

* tests/vhangup.c (main): Use sprintrc.
This commit is contained in:
Дмитрий Левин 2016-09-05 13:59:08 +00:00
parent 60d5765b5a
commit b177783770

View File

@ -21,10 +21,7 @@ main(void)
* The system call, however, returns 0 iff the calling process
* has CAP_SYS_TTY_CONFIG capability.
*/
if (rc)
printf("vhangup() = %ld %s (%m)\n", rc, errno2name());
else
puts("vhangup() = 0");
printf("vhangup() = %s\n", sprintrc(rc));
puts("+++ exited with 0 +++");
return 0;