[CRIU] [PATCH v3] restore: Fetch mmap_minimal_address runtime

Pavel Emelyanov xemul at virtuozzo.com
Thu Dec 8 05:25:48 PST 2016


> +
> +	if (value < default_mmap_min_addr) {
> +		pr_debug("Adjust mmap_min_addr %#lx -> %#lx\n",
> +			 value, default_mmap_min_addr);

This doesn't build on ARM.

In file included from criu/kerndat.c:16:0:
criu/kerndat.c: In function 'kerndat_get_mmap_min_addr':
criu/kerndat.c:136:12: error: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'uint64_t {aka long long unsigned int}' [-Werror=format=]
   pr_debug("Adjust mmap_min_addr %#lx -> %#lx\n",
            ^
/criu/criu/include/log.h:68:21: note: in definition of macro 'pr_debug'
          LOG_PREFIX fmt, ##__VA_ARGS__)
                     ^~~
  CC       criu/log.o

> +		kdat.mmap_min_addr = default_mmap_min_addr;
> +	} else
> +		kdat.mmap_min_addr = value;
> +
> +	pr_debug("Found mmap_min_addr %#lx\n", kdat.mmap_min_addr);
> +}
> +



More information about the CRIU mailing list