From 0214fbf2eaffd4c0a90a43a80141c100506e1d4b Mon Sep 17 00:00:00 2001 From: George Dunlap Date: Tue, 21 Feb 2012 17:45:59 +0000 Subject: [PATCH] libxl: cleanup: Remove pointless ERRNOVAL Just call LIBXL__LOG rather than passing a meaningless ERRNOVAL. Signed-off-by: George Dunlap Acked-by: Ian Jackson Committed-by: Ian Jackson --- tools/libxl/libxl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 68bba8f49..a1f63fba3 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -3008,13 +3008,13 @@ int libxl_sched_credit_domain_set(libxl_ctx *ctx, uint32_t domid, libxl_sched_cr 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; -- 2.39.5