Commit af997cce authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

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: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 4e9d271f
...@@ -280,8 +280,8 @@ static int vma_get_mapfile(char *fname, struct vma_area *vma, DIR *mfd, ...@@ -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) { if (vfi->dev_maj != 0 || vfi->dev_min != 0 || vfi->ino != 0) {
pr_err("Strange file mapped at %lx [%s]:%d.%d.%ld\n", pr_err("Strange file mapped at %lx [%s]:%d.%d.%ld\n",
vma->e->start, fname, (unsigned long)vma->e->start, fname,
vfi->dev_maj, vfi->dev_min, vfi->ino); vfi->dev_maj, vfi->dev_min, vfi->ino);
return -1; return -1;
} }
...@@ -333,7 +333,7 @@ static int vma_get_mapfile(char *fname, struct vma_area *vma, DIR *mfd, ...@@ -333,7 +333,7 @@ static int vma_get_mapfile(char *fname, struct vma_area *vma, DIR *mfd,
if (vma->vmst->st_dev != vfi_dev || if (vma->vmst->st_dev != vfi_dev ||
vma->vmst->st_ino != vfi->ino) { vma->vmst->st_ino != vfi->ino) {
pr_err("Failed to resolve mapping %lx filename\n", pr_err("Failed to resolve mapping %lx filename\n",
vma->e->start); (unsigned long)vma->e->start);
close(fd); close(fd);
return -1; return -1;
} }
......
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