From 0bd675a56c82f57766bebe2f92f231855889079a Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Wed, 17 Aug 2016 11:31:10 -0700 Subject: [PATCH] Fix format specifier for size_t Signed-off-by: Mrunal Patel --- libcontainer/nsenter/nsexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcontainer/nsenter/nsexec.c b/libcontainer/nsenter/nsexec.c index 668077ae4..f5d47eb57 100644 --- a/libcontainer/nsenter/nsexec.c +++ b/libcontainer/nsenter/nsexec.c @@ -286,7 +286,7 @@ static void nl_parse(int fd, struct nlconfig_t *config) size = NLMSG_PAYLOAD(&hdr, 0); current = data = malloc(size); if (!data) - bail("failed to allocate %d bytes of memory for nl_payload", size); + bail("failed to allocate %zu bytes of memory for nl_payload", size); len = read(fd, data, size); if (len != size)