mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-28 20:42:49 +00:00
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:
parent
0dfb077621
commit
94b09be23a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue