[PATCH] remote: Fix error message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]