Commit 4f7161dd authored by Alexander Kartashov's avatar Alexander Kartashov Committed by Pavel Emelyanov

file-lock.c: generalized format strings

This patch fixes format strings in newly added code.
Signed-off-by: 's avatarAlexander Kartashov <alekskartashov@parallels.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 6586c468
...@@ -34,7 +34,7 @@ void free_file_locks(void) ...@@ -34,7 +34,7 @@ void free_file_locks(void)
int dump_one_file_lock(FileLockEntry *fle, const struct cr_fdset *fdset) 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); fle->flag, fle->type, fle->pid, fle->fd, fle->start, fle->len);
return pb_write_one(fdset_fd(fdset, CR_FD_FILE_LOCKS), return pb_write_one(fdset_fd(fdset, CR_FD_FILE_LOCKS),
...@@ -79,7 +79,7 @@ static int restore_file_lock(FileLockEntry *fle) ...@@ -79,7 +79,7 @@ static int restore_file_lock(FileLockEntry *fle)
flk.l_type = fle->type; flk.l_type = fle->type;
pr_info("(posix)flag: %d, type: %d, pid: %d, fd: %d, " 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->flag, fle->type, fle->pid, fle->fd,
fle->start, fle->len); fle->start, fle->len);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment