From a019277c7f325dd20678d23b8210156ef4bd2318 Mon Sep 17 00:00:00 2001 From: Alexander Mikhalitsyn Date: Fri, 29 Sep 2023 17:28:46 +0200 Subject: [PATCH] cpuview: pass a correct argument to lxcfs_debug struct cg_proc_stat *cur; ... lxcfs_debug("Removing stat node for %s\n", cur); should be: lxcfs_debug("Removing stat node for %s\n", cur->cg); Only reproducible when DEBUG macro is defined. Signed-off-by: Alexander Mikhalitsyn --- src/proc_cpuview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proc_cpuview.c b/src/proc_cpuview.c index 14afdd0b..0063fd58 100644 --- a/src/proc_cpuview.c +++ b/src/proc_cpuview.c @@ -265,7 +265,7 @@ static struct cg_proc_stat *prune_proc_stat_list(struct cg_proc_stat *node) first = node->next; node = node->next; - lxcfs_debug("Removing stat node for %s\n", cur); + lxcfs_debug("Removing stat node for %s\n", cur->cg); free_proc_stat_node(cur); } else {