mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-22 17:49:13 +00:00
arm: proc_parse -- Fix u64 format warnings
Use explicit type to placate the compiler.
| proc_parse.c: In function 'vma_get_mapfile':
| proc_parse.c:282:6: error: format '%lx' expects argument of type 'long unsigned
| int', but argument 5 has type 'uint64_t' [-Werror=format=]
| pr_err("Strange file mapped at %lx [%s]:%d.%d.%ld\n",
| ^
| proc_parse.c:335:5: error: format '%lx' expects argument of type 'long unsigned
| int', but argument 5 has type 'uint64_t' [-Werror=format=]
| pr_err("Failed to resolve mapping %lx filename\n",
| ^
| cc1: all warnings being treated as errors
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
4e9d271fc0
commit
af997ccea6
1 changed files with 3 additions and 3 deletions
|
|
@ -280,8 +280,8 @@ static int vma_get_mapfile(char *fname, struct vma_area *vma, DIR *mfd,
|
|||
|
||||
if (vfi->dev_maj != 0 || vfi->dev_min != 0 || vfi->ino != 0) {
|
||||
pr_err("Strange file mapped at %lx [%s]:%d.%d.%ld\n",
|
||||
vma->e->start, fname,
|
||||
vfi->dev_maj, vfi->dev_min, vfi->ino);
|
||||
(unsigned long)vma->e->start, fname,
|
||||
vfi->dev_maj, vfi->dev_min, vfi->ino);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
@ -333,7 +333,7 @@ static int vma_get_mapfile(char *fname, struct vma_area *vma, DIR *mfd,
|
|||
if (vma->vmst->st_dev != vfi_dev ||
|
||||
vma->vmst->st_ino != vfi->ino) {
|
||||
pr_err("Failed to resolve mapping %lx filename\n",
|
||||
vma->e->start);
|
||||
(unsigned long)vma->e->start);
|
||||
close(fd);
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue