render / rpms / libvirt

Forked from rpms/libvirt 10 months ago
Clone
404507
From 73e3efc5dae126514b00a8538664609810cadbc4 Mon Sep 17 00:00:00 2001
404507
Message-Id: <73e3efc5dae126514b00a8538664609810cadbc4@dist-git>
404507
From: Peter Krempa <pkrempa@redhat.com>
404507
Date: Mon, 13 Nov 2017 13:48:09 +0100
404507
Subject: [PATCH] conf: Fix message when maximum vCPU count is less than
404507
 current
404507
404507
Reword the message and drop the numbers (which were reversed) from it
404507
so that it actually makes sense.
404507
404507
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1509151
404507
(cherry picked from commit 50712e14f40ffdac8a71ce9ef091e4e7bd822585)
404507
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
404507
---
404507
 src/conf/domain_conf.c | 6 +++---
404507
 1 file changed, 3 insertions(+), 3 deletions(-)
404507
404507
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
404507
index 3b337d1a64..ca5d0bcc54 100644
404507
--- a/src/conf/domain_conf.c
404507
+++ b/src/conf/domain_conf.c
404507
@@ -1505,9 +1505,9 @@ virDomainDefSetVcpus(virDomainDefPtr def,
404507
     size_t i;
404507
 
404507
     if (vcpus > def->maxvcpus) {
404507
-        virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
404507
-                       _("maxvcpus must not be less than current vcpus (%u < %zu)"),
404507
-                       vcpus, def->maxvcpus);
404507
+        virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
404507
+                       _("maximum vCPU count must not be less than current "
404507
+                         "vCPU count"));
404507
         return -1;
404507
     }
404507
 
404507
-- 
404507
2.15.0
404507