[CRIU] [PATCH 1/8] file-lock.c: generalized format strings

Alexander Kartashov alekskartashov at parallels.com
Fri Jan 18 02:08:32 EST 2013


This patch fixes format strings in newly added code.

Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
---
 file-lock.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/file-lock.c b/file-lock.c
index 80a0c8f..592afc9 100644
--- a/file-lock.c
+++ b/file-lock.c
@@ -34,7 +34,7 @@ void free_file_locks(void)
 
 int dump_one_file_lock(FileLockEntry *fle, const struct cr_fdset *fdset)
 {
-	pr_info("flag: %d,type: %d,pid: %d,fd: %d,start: %8lx,len: %8lx\n",
+	pr_info("flag: %d,type: %d,pid: %d,fd: %d,start: %8"PRIx64",len: %8"PRIx64"\n",
 		fle->flag, fle->type, fle->pid,	fle->fd, fle->start, fle->len);
 
 	return pb_write_one(fdset_fd(fdset, CR_FD_FILE_LOCKS),
@@ -79,7 +79,7 @@ static int restore_file_lock(FileLockEntry *fle)
 		flk.l_type   = fle->type;
 
 		pr_info("(posix)flag: %d, type: %d, pid: %d, fd: %d, "
-			"start: %8lx, len: %8lx\n",
+			"start: %8"PRIx64", len: %8"PRIx64"\n",
 			fle->flag, fle->type, fle->pid, fle->fd,
 			fle->start, fle->len);
 
-- 
1.7.10.4



More information about the CRIU mailing list