[CRIU] [crtools-bot] cr-show.c: fix printf format warnings

Cyrill Gorcunov gorcunov at openvz.org
Tue Jan 31 06:57:16 EST 2012


The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit e70f8d2376b9e3dcbc7ca6b367381064c4797077
Author: Kir Kolyshkin <kir at openvz.org>
Date:   Tue Jan 31 15:31:25 2012 +0400

    cr-show.c: fix printf format warnings
    
    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>
    Signed-off-by: Cyrill Gorcunov <gorcunov 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);


More information about the CRIU mailing list