]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: Print pid_t as long long
authorMartin Kletzander <mkletzan@redhat.com>
Sun, 20 Nov 2016 20:46:21 +0000 (21:46 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Sun, 20 Nov 2016 20:46:21 +0000 (21:46 +0100)
After commit f2bf5fbb0449, MinGW strikes again.  Simply print pid as any
other place after commit b7d2d4af2bd5.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/util/virprocess.c

index f2993493d2c29d355647234f073c41eca3494d7a..3cacc89789351156b0e4e3828759ebfd4b52a257 100644 (file)
@@ -1228,7 +1228,8 @@ virProcessSetScheduler(pid_t pid,
     struct sched_param param = {0};
     int pol = virProcessSchedTranslatePolicy(policy);
 
-    VIR_DEBUG("pid=%d, policy=%d, priority=%u", pid, policy, priority);
+    VIR_DEBUG("pid=%lld, policy=%d, priority=%u",
+              (long long) pid, policy, priority);
 
     if (!policy)
         return 0;
@@ -1270,8 +1271,8 @@ virProcessSetScheduler(pid_t pid,
 
     if (sched_setscheduler(pid, pol, &param) < 0) {
         virReportSystemError(errno,
-                             _("Cannot set scheduler parameters for pid %d"),
-                             pid);
+                             _("Cannot set scheduler parameters for pid %lld"),
+                             (long long) pid);
         return -1;
     }