]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
libxl: cleanup: Remove pointless ERRNOVAL
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Tue, 21 Feb 2012 17:45:59 +0000 (17:45 +0000)
committerGeorge Dunlap <george.dunlap@eu.citrix.com>
Tue, 21 Feb 2012 17:45:59 +0000 (17:45 +0000)
Just call LIBXL__LOG rather than passing a meaningless ERRNOVAL.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.c

index 68bba8f499c8bd741f76540f022b14358bd7207d..a1f63fba3893b6a574423be392a9e471676a4754 100644 (file)
@@ -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;