When creating new internal representation of cgroups, all passed
arguments are logged. Well, except for two: pid and pointer for
return value. Lets log them too.
Signed-off-by: Michal Privoznik <mprivozn(a)redhat.com>
---
src/util/vircgroup.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c
index 660f840..0ae99c9 100644
--- a/src/util/vircgroup.c
+++ b/src/util/vircgroup.c
@@ -1050,8 +1050,8 @@ virCgroupNew(pid_t pid,
int controllers,
virCgroupPtr *group)
{
- VIR_DEBUG("parent=%p path=%s controllers=%d",
- parent, path, controllers);
+ VIR_DEBUG("pid=%lld path=%s parent=%p controllers=%d group=%p",
+ (long long) pid, path, parent, controllers, group);
*group = NULL;
if (VIR_ALLOC((*group)) < 0)
--
2.0.5