cr_service(): don't use pr_perror()

Since sd_listen_fds() doesn't set errno when returning a value > 1,
it doesn't make sense to use pr_perror(). Use pr_err() instead.

While at it, remove the period from the log message.

[v2: fix function names]

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Kir Kolyshkin 2013-12-20 16:08:21 +04:00 committed by Pavel Emelyanov
parent 0dfb077621
commit 94b09be23a

View file

@ -349,7 +349,7 @@ int cr_service(bool daemon_mode)
n = sd_listen_fds(0);
if (n > 1) {
pr_perror("Too many file descriptors (%d) recieved.", n);
pr_err("Too many file descriptors (%d) recieved", n);
goto err;
} else if (n == 1)
server_fd = SD_LISTEN_FDS_START + 0;