|
|
3e5111 |
From 498fbdbe081260f7e42a1659e11912f9f2c0e5ad Mon Sep 17 00:00:00 2001
|
|
|
3e5111 |
Message-Id: <498fbdbe081260f7e42a1659e11912f9f2c0e5ad@dist-git>
|
|
|
3e5111 |
From: Peter Krempa <pkrempa@redhat.com>
|
|
|
3e5111 |
Date: Tue, 4 Apr 2017 09:31:21 +0200
|
|
|
3e5111 |
Subject: [PATCH] qemu: hotplug: Fix formatting strings in
|
|
|
3e5111 |
qemuDomainFilterHotplugVcpuEntities
|
|
|
3e5111 |
|
|
|
3e5111 |
'next' is declared as 'ssize_t' so use '%zd'
|
|
|
3e5111 |
|
|
|
3e5111 |
(cherry picked from commit 86d69c309181ed7782427261abd85a4b3fdc704f)
|
|
|
3e5111 |
|
|
|
3e5111 |
https://bugzilla.redhat.com/show_bug.cgi?id=1437010
|
|
|
3e5111 |
---
|
|
|
3e5111 |
src/qemu/qemu_hotplug.c | 8 ++++----
|
|
|
3e5111 |
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
3e5111 |
|
|
|
3e5111 |
diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
|
|
|
3e5111 |
index b5b520d8c..48de6b815 100644
|
|
|
3e5111 |
--- a/src/qemu/qemu_hotplug.c
|
|
|
3e5111 |
+++ b/src/qemu/qemu_hotplug.c
|
|
|
3e5111 |
@@ -5823,13 +5823,13 @@ qemuDomainFilterHotplugVcpuEntities(virDomainDefPtr def,
|
|
|
3e5111 |
|
|
|
3e5111 |
if (vcpu->online == state) {
|
|
|
3e5111 |
virReportError(VIR_ERR_INVALID_ARG,
|
|
|
3e5111 |
- _("vcpu '%zu' is already in requested state"), next);
|
|
|
3e5111 |
+ _("vcpu '%zd' is already in requested state"), next);
|
|
|
3e5111 |
goto cleanup;
|
|
|
3e5111 |
}
|
|
|
3e5111 |
|
|
|
3e5111 |
if (vcpu->online && !vcpu->hotpluggable) {
|
|
|
3e5111 |
virReportError(VIR_ERR_INVALID_ARG,
|
|
|
3e5111 |
- _("vcpu '%zu' can't be hotunplugged"), next);
|
|
|
3e5111 |
+ _("vcpu '%zd' can't be hotunplugged"), next);
|
|
|
3e5111 |
goto cleanup;
|
|
|
3e5111 |
}
|
|
|
3e5111 |
}
|
|
|
3e5111 |
@@ -5845,7 +5845,7 @@ qemuDomainFilterHotplugVcpuEntities(virDomainDefPtr def,
|
|
|
3e5111 |
|
|
|
3e5111 |
if (vcpupriv->vcpus == 0) {
|
|
|
3e5111 |
virReportError(VIR_ERR_INVALID_ARG,
|
|
|
3e5111 |
- _("vcpu '%zu' belongs to a larger hotpluggable entity, "
|
|
|
3e5111 |
+ _("vcpu '%zd' belongs to a larger hotpluggable entity, "
|
|
|
3e5111 |
"but siblings were not selected"), next);
|
|
|
3e5111 |
goto cleanup;
|
|
|
3e5111 |
}
|
|
|
3e5111 |
@@ -5854,7 +5854,7 @@ qemuDomainFilterHotplugVcpuEntities(virDomainDefPtr def,
|
|
|
3e5111 |
if (!virBitmapIsBitSet(map, i)) {
|
|
|
3e5111 |
virReportError(VIR_ERR_INVALID_ARG,
|
|
|
3e5111 |
_("vcpu '%zu' was not selected but it belongs to "
|
|
|
3e5111 |
- "hotpluggable entity '%zu-%zu' which was "
|
|
|
3e5111 |
+ "hotpluggable entity '%zd-%zd' which was "
|
|
|
3e5111 |
"partially selected"),
|
|
|
3e5111 |
i, next, next + vcpupriv->vcpus - 1);
|
|
|
3e5111 |
goto cleanup;
|
|
|
3e5111 |
--
|
|
|
3e5111 |
2.12.2
|
|
|
3e5111 |
|