[lxc-devel] [lxc/master] [log] wrong trace message

duguhaotian on Github lxc-bot at linuxcontainers.org
Fri Feb 9 11:08:33 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 374 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180209/e479dc2a/attachment.bin>
-------------- next part --------------
From 3c1fb2e4c991f78b6feb298c868b2f2c09d66145 Mon Sep 17 00:00:00 2001
From: duguhaotian <duguhaotian at gmail.com>
Date: Fri, 9 Feb 2018 18:50:51 +0800
Subject: [PATCH] [log] wrong trace message

print wrong message

Signed-off-by: duguhaotian <duguhaotian at gmail.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 affc41e16..82e0d62e3 100644
--- a/src/lxc/conf.c
+++ b/src/lxc/conf.c
@@ -396,7 +396,7 @@ int run_script_argv(const char *name, unsigned int hook_version,
 				 "LXC_HOOK_TYPE=%s", hookname);
 			return -1;
 		}
-		TRACE("Set environment variable: LXC_HOOK_TYPE=%s", section);
+		TRACE("Set environment variable: LXC_HOOK_TYPE=%s", hookname);
 
 		ret = setenv("LXC_HOOK_SECTION", section, 1);
 		if (ret < 0) {


More information about the lxc-devel mailing list