]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virProcessGetStatInfo: Improve debug message
authorPeter Krempa <pkrempa@redhat.com>
Wed, 29 Apr 2026 09:34:46 +0000 (11:34 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 5 May 2026 05:32:11 +0000 (07:32 +0200)
Label the 'pid'/'tid' field. Use proper typecast also for 'tid'.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virprocess.c

index e06ed94b0d6a5314e49cabc6b0576e444d119e14..97843d6f757b3ef4ae3b559263b337c07a756b41 100644 (file)
@@ -1808,8 +1808,8 @@ virProcessGetStatInfo(unsigned long long *cpuTime,
         *vm_rss = rss * pagesize;
 
 
-    VIR_DEBUG("Got status for %d/%d user=%llu sys=%llu cpu=%d rss=%lld",
-              (int) pid, tid, utime, stime, cpu, rss);
+    VIR_DEBUG("Got process stats for pid=%d tid=%d: user=%llu sys=%llu cpu=%d rss=%lld",
+              (int) pid, (int) tid, utime, stime, cpu, rss);
 
     return 0;
 }