]> git.ipfire.org Git - thirdparty/libvirt.git/commit
ch: Use uint for @maxvcpus in virCHDomainRefreshThreadInfo()
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 5 Sep 2023 10:13:39 +0000 (12:13 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 5 Sep 2023 14:09:49 +0000 (16:09 +0200)
commite96db2ae015f13bb28a64da473565d6833a9fa36
treef8266de6fc7a9c04bc9887f4a39db1a3f46c7ff2
parenta3397370e86362477db7609a255cc74c6c5a656f
ch: Use uint for @maxvcpus in virCHDomainRefreshThreadInfo()

The @maxvcpus variable inside of virCHDomainRefreshThreadInfo()
holds retval of virDomainDefGetVcpusMax() which returns an
unsigned int. Also, the variable is then passed to VIR_WARN()
with incorrect format directive (%ld). Switch variable to uint
and fix the format directive.

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