[libvirt] [PATCH] remote: Fix error message

Cole Robinson crobinso at redhat.com
Wed Mar 23 20:58:34 UTC 2016


We were printing the wrong MAX value
---
Pushed as trivial

 daemon/remote.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/daemon/remote.c b/daemon/remote.c
index 2bf9e83..3bf94fa 100644
--- a/daemon/remote.c
+++ b/daemon/remote.c
@@ -5724,11 +5724,11 @@ remoteDispatchConnectGetAllDomainStats(virNetServerPtr server ATTRIBUTE_UNUSED,
 
     if (nrecords > REMOTE_CONNECT_GET_ALL_DOMAIN_STATS_MAX) {
         virReportError(VIR_ERR_INTERNAL_ERROR,
                        _("Number of domain stats records is %d, "
                          "which exceeds max limit: %d"),
-                       nrecords, REMOTE_DOMAIN_LIST_MAX);
+                       nrecords, REMOTE_CONNECT_GET_ALL_DOMAIN_STATS_MAX);
         goto cleanup;
     }
 
     if (nrecords) {
         if (VIR_ALLOC_N(ret->retStats.retStats_val, nrecords) < 0)
-- 
2.5.0




More information about the libvir-list mailing list