test/others/bers: use pr_perror

When errno is set, it makes sense to use pr_perror.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin 2021-04-22 17:35:14 -07:00 committed by Andrei Vagin
parent e326889c06
commit dca0eb5b4a

View file

@ -366,7 +366,7 @@ int main(int argc, char *argv[])
pid = fork();
if (pid < 0) {
printf("Can't create fork: %m\n");
pr_perror("Can't fork");
exit(1);
} else if (pid == 0) {
work_on_fork(shared);