Commit 3bb6d9f4 authored by Alexander Kartashov's avatar Alexander Kartashov Committed by Pavel Emelyanov

cr: use the length modifier %z to print an integer of the type size_t

Signed-off-by: 's avatarAlexander Kartashov <alekskartashov@parallels.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 4f7161dd
......@@ -185,7 +185,7 @@ int restore_pipe_data(int img_type, int pfd, u32 id, struct pipe_data_rst **hash
}
if (ret == 0 || ret > iov.iov_len /* sanity */) {
pr_err("%#x: Wanted to restore %lu bytes, but got %d\n", id,
pr_err("%#x: Wanted to restore %zu bytes, but got %d\n", id,
iov.iov_len, ret);
ret = -1;
goto err;
......
......@@ -344,7 +344,7 @@ static int restore_mreqs(int sk, PacketSockEntry *pse)
pr_info("Restoring mreq type %d\n", ml->type);
if (ml->addr.len > sizeof(mreq.mr_address)) {
pr_err("To big mcaddr %lu\n", ml->addr.len);
pr_err("To big mcaddr %zu\n", ml->addr.len);
return -1;
}
......
......@@ -388,7 +388,7 @@ int copy_file(int fd_in, int fd_out, size_t bytes)
if (ret == 0) {
if (bytes && (written != bytes)) {
pr_err("Ghost file size mismatch %lu/%lu\n",
pr_err("Ghost file size mismatch %zu/%zu\n",
written, bytes);
return -1;
}
......@@ -436,7 +436,7 @@ void *shmalloc(size_t bytes)
void *ret;
if (bytes > SH_BUF_CHUNK) {
pr_err("Too big shared buffer requested %lu\n", bytes);
pr_err("Too big shared buffer requested %zu\n", bytes);
return NULL;
}
......
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