mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
ch: Use proper format directive for @i in virCHProcessSetupIOThreads()
The @i variable inside of virCHProcessSetupIOThreads() is a typical loop counter - it's declared as size_t. But when passed to VIR_DEBUG an invalid format directive is used (%ld). Fix that. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
cf05b7fd97
commit
abecd6633e
@ -332,7 +332,7 @@ virCHProcessSetupIOThreads(virDomainObj *vm)
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
for (i = 0; i < niothreads; i++) {
|
for (i = 0; i < niothreads; i++) {
|
||||||
VIR_DEBUG("IOThread index = %ld , tid = %d", i, iothreads[i]->iothread_id);
|
VIR_DEBUG("IOThread index = %zu , tid = %d", i, iothreads[i]->iothread_id);
|
||||||
if (virCHProcessSetupIOThread(vm, iothreads[i]) < 0)
|
if (virCHProcessSetupIOThread(vm, iothreads[i]) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user