From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Dunlap Subject: [PATCH 06 of 10] libxl: cleanup: Remove pointless ERRNOVAL Date: Tue, 21 Feb 2012 13:34:12 +0000 Message-ID: <0f97e5c69eeb0c00d1f7.1329831252@kodo2> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xensource.com Cc: george.dunlap@eu.citrix.com List-Id: xen-devel@lists.xenproject.org Just call LIBXL__LOG rather than passing a meaningless ERRNOVAL. Signed-off-by: George Dunlap diff -r 5e3ca9be617e -r 0f97e5c69eeb tools/libxl/libxl.c --- a/tools/libxl/libxl.c Tue Feb 21 12:14:32 2012 +0000 +++ b/tools/libxl/libxl.c Tue Feb 21 12:14:32 2012 +0000 @@ -3008,13 +3008,13 @@ int libxl_sched_credit_domain_set(libxl_ if (scinfo->weight < 1 || scinfo->weight > 65535) { - LIBXL__LOG_ERRNOVAL(ctx, LIBXL__LOG_ERROR, rc, + LIBXL__LOG(ctx, LIBXL__LOG_ERROR, "Cpu weight out of range, valid values are within range from 1 to 65535"); return ERROR_INVAL; } if (scinfo->cap < 0 || scinfo->cap > (domaininfo.max_vcpu_id + 1) * 100) { - LIBXL__LOG_ERRNOVAL(ctx, LIBXL__LOG_ERROR, rc, + LIBXL__LOG(ctx, LIBXL__LOG_ERROR, "Cpu cap out of range, valid range is from 0 to %d for specified number of vcpus", ((domaininfo.max_vcpu_id + 1) * 100)); return ERROR_INVAL;