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

Submitted by Stanislav Kinsburskiy on July 3, 2017, 2:53 p.m.

Details

Message ID 20170703145335.695531.56422.stgit@skinsbursky-vz7.qa.sw.ru
State New
Series "A couple of print fixes"
Headers show

Commit Message

Stanislav Kinsburskiy July 3, 2017, 2:53 p.m.
Signed-off-by: Stanislav Kinsburskiy <skinsbursky@virtuozzo.com>
---
 criu/sk-queue.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Patch hide | download patch | download mbox

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;