lxc/0088-fix-lxc-build-error.patch
2019-09-30 11:03:07 -04:00

30 lines
963 B
Diff

From f6ddc6eb341b7eca5616be1ffd6b403db1b83b11 Mon Sep 17 00:00:00 2001
From: liuhao <liuhao27@huawei.com>
Date: Thu, 25 Apr 2019 10:12:16 +0800
Subject: [PATCH 088/122] fix lxc build error
cause by invalid print format
Signed-off-by: liuhao <liuhao27@huawei.com>
Signed-off-by: LiFeng <lifeng68@huawei.com>
---
src/lxc/conf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lxc/conf.c b/src/lxc/conf.c
index a1d77eb..14d5d80 100644
--- a/src/lxc/conf.c
+++ b/src/lxc/conf.c
@@ -4814,7 +4814,7 @@ static int run_oci_hooks(const char *name, const char *lxcpath, struct lxc_conf
work_conf.ocihook = lc->ocihooks->poststart[i];
nret = run_ocihook_script_argv(name, "lxc", &work_conf, lxcpath, rootpath);
if (nret != 0)
- WARN("running poststart hook %d failed, ContainerId: %s", i, name);
+ WARN("running poststart hook %ld failed, ContainerId: %s", i, name);
}
break;
case OCI_HOOK_POSTSTOP:
--
1.8.3.1