From 4a164a826c3c0f0dfc21c717ff65d0454ef6d85f Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Mon, 20 Feb 2017 16:57:27 -0800 Subject: [PATCH] Use %zu for printing of size_t values This helps fix compile warnings on some arm systems. Signed-off-by: Michael Crosby --- libcontainer/nsenter/nsexec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcontainer/nsenter/nsexec.c b/libcontainer/nsenter/nsexec.c index 7d15aeb5a..1641943e2 100644 --- a/libcontainer/nsenter/nsexec.c +++ b/libcontainer/nsenter/nsexec.c @@ -284,7 +284,7 @@ static void nl_parse(int fd, struct nlconfig_t *config) /* Retrieve the netlink header. */ len = read(fd, &hdr, NLMSG_HDRLEN); if (len != NLMSG_HDRLEN) - bail("invalid netlink header length %lu", len); + bail("invalid netlink header length %zu", len); if (hdr.nlmsg_type == NLMSG_ERROR) bail("failed to read netlink message"); @@ -300,7 +300,7 @@ static void nl_parse(int fd, struct nlconfig_t *config) len = read(fd, data, size); if (len != size) - bail("failed to read netlink payload, %lu != %lu", len, size); + bail("failed to read netlink payload, %zu != %zu", len, size); /* Parse the netlink payload. */ config->data = data;