[CRIU] [PATCH 5/8] cr-show.c: fix printf format warnings

Kir Kolyshkin kir at openvz.org
Tue Jan 31 06:31:25 EST 2012


cr-show.c: In function ‘show_pipes’:
cr-show.c:119:3: error: format ‘%8lx’ expects type ‘long unsigned int’, but argument 2 has type ‘u32’
cr-show.c:119:3: error: format ‘%8lx’ expects type ‘long unsigned int’, but argument 3 has type ‘u32’
cr-show.c:119:3: error: format ‘%8lx’ expects type ‘long unsigned int’, but argument 4 has type ‘u32’
cr-show.c:119:3: error: format ‘%8lx’ expects type ‘long unsigned int’, but argument 5 has type ‘u32’

Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
 cr-show.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cr-show.c b/cr-show.c
index 5cc43f7..33d2468 100644
--- a/cr-show.c
+++ b/cr-show.c
@@ -117,7 +117,7 @@ static void show_pipes(int fd_pipes)
 		ret = read_img_eof(fd_pipes, &e);
 		if (ret <= 0)
 			goto out;
-		pr_info("fd: %8lx pipeid: %8lx flags: %8lx bytes: %8lx\n",
+		pr_info("fd: %8x pipeid: %8x flags: %8x bytes: %8x\n",
 			e.fd, e.pipeid, e.flags, e.bytes);
 		if (e.bytes)
 			lseek(fd_pipes, e.bytes, SEEK_CUR);
-- 
1.7.4.4




More information about the CRIU mailing list