Commit c90b58d8 authored by Ruslan Kuprieiev's avatar Ruslan Kuprieiev Committed by Pavel Emelyanov

service: change a few "puts" with "pr_perror"

Signed-off-by: 's avatarRuslan Kuprieiev <kupruser@gmail.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 5d18eca3
...@@ -27,13 +27,13 @@ static int recv_criu_msg(int socket_fd, CriuReq **msg) ...@@ -27,13 +27,13 @@ static int recv_criu_msg(int socket_fd, CriuReq **msg)
len = read(socket_fd, buf, MAX_MSG_SIZE); len = read(socket_fd, buf, MAX_MSG_SIZE);
if (len == -1) { if (len == -1) {
puts("Can't read request"); pr_perror("Can't read request");
return -1; return -1;
} }
*msg = criu_req__unpack(NULL, len, buf); *msg = criu_req__unpack(NULL, len, buf);
if (!*msg) { if (!*msg) {
puts("Failed unpacking request"); pr_perror("Failed unpacking request");
return -1; return -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment