]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: hotplug: Fix formatting strings in qemuDomainFilterHotplugVcpuEntities
authorPeter Krempa <pkrempa@redhat.com>
Fri, 31 Mar 2017 11:28:19 +0000 (13:28 +0200)
committerCole Robinson <crobinso@redhat.com>
Wed, 10 May 2017 19:11:04 +0000 (15:11 -0400)
'next' is declared as 'ssize_t' so use '%zd'

(cherry picked from commit 86d69c309181ed7782427261abd85a4b3fdc704f)

src/qemu/qemu_hotplug.c

index b5b520d8c665cca1f56db0b30398f132730f859e..48de6b81546b92bd5f09ccef67f8773a307b3291 100644 (file)
@@ -5823,13 +5823,13 @@ qemuDomainFilterHotplugVcpuEntities(virDomainDefPtr def,
 
         if (vcpu->online == state) {
             virReportError(VIR_ERR_INVALID_ARG,
-                           _("vcpu '%zu' is already in requested state"), next);
+                           _("vcpu '%zd' is already in requested state"), next);
             goto cleanup;
         }
 
         if (vcpu->online && !vcpu->hotpluggable) {
             virReportError(VIR_ERR_INVALID_ARG,
-                           _("vcpu '%zu' can't be hotunplugged"), next);
+                           _("vcpu '%zd' can't be hotunplugged"), next);
             goto cleanup;
         }
     }
@@ -5845,7 +5845,7 @@ qemuDomainFilterHotplugVcpuEntities(virDomainDefPtr def,
 
         if (vcpupriv->vcpus == 0) {
             virReportError(VIR_ERR_INVALID_ARG,
-                           _("vcpu '%zu' belongs to a larger hotpluggable entity, "
+                           _("vcpu '%zd' belongs to a larger hotpluggable entity, "
                              "but siblings were not selected"), next);
             goto cleanup;
         }
@@ -5854,7 +5854,7 @@ qemuDomainFilterHotplugVcpuEntities(virDomainDefPtr def,
             if (!virBitmapIsBitSet(map, i)) {
                 virReportError(VIR_ERR_INVALID_ARG,
                                _("vcpu '%zu' was not selected but it belongs to "
-                                 "hotpluggable entity '%zu-%zu' which was "
+                                 "hotpluggable entity '%zd-%zd' which was "
                                  "partially selected"),
                                i, next, next + vcpupriv->vcpus - 1);
                 goto cleanup;