mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-07 06:01:40 +00:00
kvm tools: Fix 32bit warnings
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
+1
-1
@@ -205,7 +205,7 @@ static void *setup_shmem(const char *key, size_t len, int creating)
|
||||
if (creating) {
|
||||
rtn = ftruncate(fd, (off_t) len);
|
||||
if (rtn < 0)
|
||||
pr_warning("Can't ftruncate(fd,%ld)\n", len);
|
||||
pr_warning("Can't ftruncate(fd,%zu)\n", len);
|
||||
}
|
||||
mem = mmap(NULL, len,
|
||||
PROT_READ | PROT_WRITE, MAP_SHARED | MAP_NORESERVE, fd, 0);
|
||||
|
||||
Reference in New Issue
Block a user