From patchwork Wed Mar 23 20:58:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 64276 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp266463lbc; Wed, 23 Mar 2016 14:01:28 -0700 (PDT) X-Received: by 10.140.246.136 with SMTP id r130mr6792020qhc.12.1458766888851; Wed, 23 Mar 2016 14:01:28 -0700 (PDT) Return-Path: Received: from mx4-phx2.redhat.com (mx4-phx2.redhat.com. [209.132.183.25]) by mx.google.com with ESMTPS id z203si3705102qka.44.2016.03.23.14.01.27 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 23 Mar 2016 14:01:28 -0700 (PDT) Received-SPF: pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.25 as permitted sender) client-ip=209.132.183.25; Authentication-Results: mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.25 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx4-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u2NKwcvv010695; Wed, 23 Mar 2016 16:58:39 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u2NKwaY2031582 for ; Wed, 23 Mar 2016 16:58:37 -0400 Received: from colepc.redhat.com (ovpn-113-32.phx2.redhat.com [10.3.113.32]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u2NKwaCG010301; Wed, 23 Mar 2016 16:58:36 -0400 From: Cole Robinson To: libvirt-list@redhat.com Date: Wed, 23 Mar 2016 16:58:34 -0400 Message-Id: <360229e8b4c0d99cb90ae83875566170187d6bb1.1458766687.git.crobinso@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH] remote: Fix error message X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com 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 --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)