mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
util: Print pid_t as long long
After commitf2bf5fbb04
, MinGW strikes again. Simply print pid as any other place after commitb7d2d4af2b
. Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
112b095944
commit
8158a19fd7
@ -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, ¶m) < 0) {
|
||||
virReportSystemError(errno,
|
||||
_("Cannot set scheduler parameters for pid %d"),
|
||||
pid);
|
||||
_("Cannot set scheduler parameters for pid %lld"),
|
||||
(long long) pid);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user