]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/criu.c
c/r: use PRIu64 format specifier
authorChristian Brauner <cbrauner@suse.de>
Fri, 22 Jul 2016 09:14:24 +0000 (11:14 +0200)
committerChristian Brauner <cbrauner@suse.de>
Fri, 22 Jul 2016 09:16:43 +0000 (11:16 +0200)
commit9b945f132023a099733f9cc51982677c8de7ecdc
treee4af7247c24a86b6536f7c995cf1aae18496f24d
parent3be6e5ff7c4e1a2e2280f819e644343caf1429da
c/r: use PRIu64 format specifier

Fixes build failures on arm:

criu.c: In function ‘exec_criu’:
criu.c:310:4: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint64_t’ [-Werror=format=]
    ret = sprintf(ghost_limit, "%lu", opts->user->ghost_limit);
    ^
In file included from criu.c:42:0:
log.h:285:9: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint64_t’ [-Werror=format=]
  struct lxc_log_locinfo locinfo = LXC_LOG_LOCINFO_INIT;  \
         ^
criu.c:312:5: note: in expansion of macro ‘ERROR’
     ERROR("failed to print ghost limit %lu", opts->user->ghost_limit);
     ^

Signed-off-by: Christian Brauner <cbrauner@suse.de>
src/lxc/criu.c