]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
virCgroupNew: Enhance debug message
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 27 Mar 2015 10:29:25 +0000 (11:29 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 30 Mar 2015 13:20:24 +0000 (15:20 +0200)
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@redhat.com>
src/util/vircgroup.c

index cc67f151b81705cced5a76d41842c0a0bf053994..d42f4335a14a5a12a36972be393edd505bc351d0 100644 (file)
@@ -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)