[CRIU] [PATCH] socket-tcpbuf: fix the message

Andrey Vagin avagin at openvz.org
Fri Jul 12 07:55:10 EDT 2013


The number of bytes, which were sent and received, should be
exchanged in the message

Cc: Cyrill Gorcunov <gorcunov at openvz.org>
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 test/zdtm/live/static/socket-tcpbuf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/zdtm/live/static/socket-tcpbuf.c b/test/zdtm/live/static/socket-tcpbuf.c
index 8cc10d4..c2f7c43 100644
--- a/test/zdtm/live/static/socket-tcpbuf.c
+++ b/test/zdtm/live/static/socket-tcpbuf.c
@@ -222,7 +222,7 @@ int main(int argc, char **argv)
 	rcv_size = clean_sk_buf(fd);
 
 	if (ret != rcv_size) {
-		fail("The child sent %d bytes, but the parent received %d bytes\n", rcv_size, ret);
+		fail("The child sent %d bytes, but the parent received %d bytes\n", ret, rcv_size);
 		return 1;
 	}
 
-- 
1.8.3.1



More information about the CRIU mailing list