[PATCH 3/3] ch: Use proper format directive for @i in virCHProcessSetupIOThreads()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 src/ch/ch_process.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ch/ch_process.c b/src/ch/ch_process.c
index 44c5b0611e..6d3a9612bd 100644
--- a/src/ch/ch_process.c
+++ b/src/ch/ch_process.c
@@ -332,7 +332,7 @@ virCHProcessSetupIOThreads(virDomainObj *vm)
         return -1;
 
     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)
             return -1;
     }
-- 
2.41.0




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux