lxc/0088-fix-lxc-build-error.patch

30 lines
963 B
Diff
Raw Normal View History

From 0c0588bd00878eaf2add137bb29bf225eaa8d904 Mon Sep 17 00:00:00 2001
2019-09-30 11:03:07 -04:00
From: liuhao <liuhao27@huawei.com>
Date: Thu, 25 Apr 2019 10:12:16 +0800
Subject: [PATCH 088/138] fix lxc build error
2019-09-30 11:03:07 -04:00
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
2019-09-30 11:03:07 -04:00
--- 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
2019-09-30 11:03:07 -04:00