Commit 85235af8 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

restore: Use %lx for map_files

map_files format defined as %lx-%lx in
kernel and while there should not be a
problem if it's written in %p-%p, still
better to be on a safe side and follow
kernel's notation.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Acked-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 097bc0b9
......@@ -346,8 +346,8 @@ static int shmem_remap(void *old_addr, void *new_addr, unsigned long size)
int fd;
void *ret;
sprintf(path, "/proc/self/map_files/%p-%p",
old_addr, (void *)old_addr + size);
sprintf(path, "/proc/self/map_files/%lx-%lx",
(long)old_addr, (long)old_addr + size);
fd = open(path, O_RDWR);
if (fd < 0) {
......
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