]> git.ipfire.org Git - thirdparty/libvirt.git/commit
ch: Use int for @niothreads in virCHMonitorGetIOThreads()
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 5 Sep 2023 10:17:19 +0000 (12:17 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 5 Sep 2023 14:09:49 +0000 (16:09 +0200)
commitcf05b7fd97b73d42efb101bb80f89f9c75c1e748
tree3891b22dbf61c4b94bcc557f99501c386a246b05
parente96db2ae015f13bb28a64da473565d6833a9fa36
ch: Use int for @niothreads in virCHMonitorGetIOThreads()

The @niothreads inside of virCHMonitorGetIOThreads() is declared
as of size_t type. This would work, except the variable is then
passed to VIR_DEBUG with incorrect format directive (%ld) and
returned.  But the function returns an int not size_t. Fix the
variable declaration and format directive.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/ch/ch_monitor.c