[CRIU] [PATCH 7/7] parasite: fix format string typo

Tycho Andersen tycho.andersen at canonical.com
Thu Feb 18 08:08:56 PST 2016


The pie sprintf implementation doesn't know about `z', so let's just use
%lu instead.

Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
 criu/pie/parasite.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/pie/parasite.c b/criu/pie/parasite.c
index 53ef609..b5cf6c9 100644
--- a/criu/pie/parasite.c
+++ b/criu/pie/parasite.c
@@ -571,7 +571,7 @@ static int __parasite_daemon_reply_ack(unsigned int cmd, int err)
 	m = ctl_msg_ack(cmd, err);
 	ret = sys_sendto(tsock, &m, sizeof(m), 0, NULL, 0);
 	if (ret != sizeof(m)) {
-		pr_err("Sent only %d bytes while %zd expected\n", ret, sizeof(m));
+		pr_err("Sent only %d bytes while %lu expected\n", ret, sizeof(m));
 		return -1;
 	}
 
-- 
2.6.4



More information about the CRIU mailing list