From: Peter Krempa <[email protected]>

Label the 'pid'/'tid' field. Use proper typecast also for 'tid'.

Signed-off-by: Peter Krempa <[email protected]>
---
 src/util/virprocess.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/util/virprocess.c b/src/util/virprocess.c
index e06ed94b0d..97843d6f75 100644
--- a/src/util/virprocess.c
+++ b/src/util/virprocess.c
@@ -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;
 }
-- 
2.54.0

Reply via email to