diff --git a/src/lxc/criu.c b/src/lxc/criu.c index d330d7247..69d25cf1c 100644 --- a/src/lxc/criu.c +++ b/src/lxc/criu.c @@ -22,6 +22,7 @@ */ #define _GNU_SOURCE #include +#include #include #include #include @@ -307,9 +308,9 @@ static void exec_criu(struct criu_opts *opts) if (opts->user->ghost_limit) { char ghost_limit[32]; - ret = sprintf(ghost_limit, "%lu", opts->user->ghost_limit); + ret = sprintf(ghost_limit, "%"PRIu64, opts->user->ghost_limit); if (ret < 0 || ret >= sizeof(ghost_limit)) { - ERROR("failed to print ghost limit %lu", opts->user->ghost_limit); + ERROR("failed to print ghost limit %"PRIu64, opts->user->ghost_limit); goto err; }