diff mbox

remote: Fix error message

Message ID 360229e8b4c0d99cb90ae83875566170187d6bb1.1458766687.git.crobinso@redhat.com
State New
Headers show

Commit Message

Cole Robinson March 23, 2016, 8:58 p.m. UTC
We were printing the wrong MAX value
---
Pushed as trivial

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

-- 
2.5.0

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

Patch

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)