[Devel] [PATCH 2/2] sk-queue: fix non-fatal print log level

Stanislav Kinsburskiy skinsbursky at virtuozzo.com
Mon Jul 3 17:53:35 MSK 2017


Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
---
 criu/sk-queue.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/criu/sk-queue.c b/criu/sk-queue.c
index 8ab53f6..5e2601c 100644
--- a/criu/sk-queue.c
+++ b/criu/sk-queue.c
@@ -230,9 +230,9 @@ static int dump_sk_creds(struct ucred *ucred, SkPacketEntry *pe, int flags)
 			_errno = errno;
 		}
 		if (ret) {
-			errno = _errno;
-			pr_perror("ucred: Unable to dump ucred for a dead process %d,"
-				  "ignoring packet", ucred->pid);
+			pr_warn("ucred: Unable to dump ucred for a dead process %d, "
+				  "ignoring packet: %s\n", ucred->pid,
+				  strerror(_errno));
 			pe->ucred = NULL;
 			xfree(ent);
 			return 2;



More information about the Devel mailing list