2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

cleanup: dump -- Add warning on unexpected VMA

Instead of simply dropping this dead code, put
a warning here, just to be on a safe side.

Reported-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov
2011-11-14 18:51:36 +04:00
parent 5ae9d9feb8
commit 1c5f981e51

View File

@@ -1042,7 +1042,8 @@ static int finalize_core(pid_t pid, struct list_head *vma_area_list, struct cr_f
}
num_anon++;
} else {
/* skip the file shared page */
pr_warning("Unexpected VMA area found\n");
pr_info_vma(vma_area);
lseek(fd_pages, PAGE_SIZE, SEEK_CUR);
}
}