Skip to content

Commit

Permalink
cpuview: pass a correct argument to lxcfs_debug
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mihalicyn committed Sep 29, 2023
1 parent a6069df commit a019277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proc_cpuview.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a019277

Please sign in to comment.