From dca0eb5b4a7c28d51c8f20527ecf54049ff443d1 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Thu, 22 Apr 2021 17:35:14 -0700 Subject: [PATCH] test/others/bers: use pr_perror When errno is set, it makes sense to use pr_perror. Signed-off-by: Kir Kolyshkin --- test/others/bers/bers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/others/bers/bers.c b/test/others/bers/bers.c index 90b70c349..bb0c9dbcb 100644 --- a/test/others/bers/bers.c +++ b/test/others/bers/bers.c @@ -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);