if (xcinfo == NULL)
{
if (exact || errno != ENOENT)
- LOGE(ERROR, "failed to get info for cpupool%d\n", poolid);
+ LOGE(ERROR, "failed to get info for cpupool%d", poolid);
return ERROR_FAIL;
}
val = libxl__xs_read(gc, XBT_NULL,
GCSPRINTF("%s/uuid", vtpminfo->backend));
if(val == NULL) {
- LOG(ERROR, "%s/uuid does not exist!\n", vtpminfo->backend);
+ LOG(ERROR, "%s/uuid does not exist!", vtpminfo->backend);
goto err;
}
if(libxl_uuid_from_string(&(vtpminfo->uuid), val)) {
device->backend_kind = LIBXL__DEVICE_KIND_QDISK;
break;
default:
- LIBXL__LOG(ctx, LIBXL__LOG_ERROR, "unrecognized disk backend type: %d\n",
- disk->backend);
+ LIBXL__LOG(ctx, LIBXL__LOG_ERROR,
+ "unrecognized disk backend type: %d", disk->backend);
return ERROR_INVAL;
}
dev = libxl__blktap_devpath(gc, disk->pdev_path,
disk->format);
if (!dev) {
- LOG(ERROR, "failed to get blktap devpath for %p\n",
+ LOG(ERROR, "failed to get blktap devpath for %p",
disk->pdev_path);
rc = ERROR_FAIL;
goto out;
assert(device->backend_kind == LIBXL__DEVICE_KIND_QDISK);
break;
default:
- LIBXL__LOG(ctx, LIBXL__LOG_ERROR, "unrecognized disk backend type: %d\n", disk->backend);
+ LIBXL__LOG(ctx, LIBXL__LOG_ERROR,
+ "unrecognized disk backend type: %d",
+ disk->backend);
rc = ERROR_INVAL;
goto out;
}
mem = libxl__xs_read(gc, XBT_NULL, libxl__sprintf(gc, "%s/memory/target", dompath));
if (!mem) {
- LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR, "cannot get memory info from %s/memory/target\n", dompath);
+ LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR,
+ "cannot get memory info from %s/memory/target",
+ dompath);
goto out;
}
memorykb = strtoul(mem, &endptr, 10);
}
if (max_memkb < memorykb) {
- LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR, "memory_static_max must be greater than or or equal to memory_dynamic_max\n");
+ LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR,
+ "memory_static_max must be greater than or or equal to memory_dynamic_max");
goto out;
}
rc = xc_domain_setmaxmem(ctx->xch, domid, max_memkb + LIBXL_MAXMEM_CONSTANT);
goto retry_transaction;
} else if (!target) {
LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR,
- "cannot get target memory info from %s/memory/target\n",
- dompath);
+ "cannot get target memory info from %s/memory/target",
+ dompath);
abort_transaction = 1;
goto out;
} else {
"%s/memory/static-max", dompath));
if (!memmax) {
LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR,
- "cannot get memory info from %s/memory/static-max\n",
- dompath);
+ "cannot get memory info from %s/memory/static-max",
+ dompath);
abort_transaction = 1;
goto out;
}
if (!domid && new_target_memkb < LIBXL_MIN_DOM0_MEM) {
LIBXL__LOG(ctx, LIBXL__LOG_ERROR,
- "new target %d for dom0 is below the minimum threshold\n",
- new_target_memkb);
+ "new target %d for dom0 is below the minimum threshold",
+ new_target_memkb);
abort_transaction = 1;
goto out;
}
goto out;
} else if (!target) {
LIBXL__LOG_ERRNO(CTX, LIBXL__LOG_ERROR,
- "cannot get target memory info from %s/memory/target\n",
- dompath);
+ "cannot get target memory info from %s/memory/target",
+ dompath);
goto out;
} else if (!static_max) {
LIBXL__LOG_ERRNO(CTX, LIBXL__LOG_ERROR,
- "cannot get target memory info from %s/memory/static-max\n",
- dompath);
+ "cannot get target memory info from %s/memory/static-max",
+ dompath);
goto out;
} else {
target_memkb = strtoul(target, &endptr, 10);
}
if (scinfo->ratelimit_us > scinfo->tslice_ms*1000) {
LIBXL__LOG(ctx, LIBXL__LOG_ERROR,
- "Ratelimit cannot be greater than timeslice\n");
+ "Ratelimit cannot be greater than timeslice");
return ERROR_INVAL;
}
xc_config->gic_version = XEN_DOMCTL_CONFIG_GIC_V3;
break;
default:
- LOG(ERROR, "Unknown GIC version %d\n",
+ LOG(ERROR, "Unknown GIC version %d",
d_config->b_info.arch_arm.gic_version);
return ERROR_FAIL;
}
d_config->b_info.arch_arm.gic_version = LIBXL_GIC_VERSION_V3;
break;
default:
- LOG(ERROR, "Unexpected gic version %u\n", xc_config->gic_version);
+ LOG(ERROR, "Unexpected gic version %u", xc_config->gic_version);
return ERROR_FAIL;
}
if (!strcmp(dom->guest_type, info->guest_type))
return info;
}
- LOG(ERROR, "Unable to find arch FDT info for %s\n", dom->guest_type);
+ LOG(ERROR, "Unable to find arch FDT info for %s", dom->guest_type);
return NULL;
}
LOG(DEBUG, "Assign device \"%s\" to dom%u", dtdev->path, domid);
ret = xc_assign_dt_device(CTX->xch, domid, dtdev->path);
if (ret < 0) {
- LOG(ERROR, "xc_assign_dtdevice failed: %d\n", ret);
+ LOG(ERROR, "xc_assign_dtdevice failed: %d", ret);
goto error_out;
}
}
break;
default:
LIBXL__LOG(ctx, LIBXL__LOG_ERROR,
- "invalid device model version %d\n",
+ "invalid device model version %d",
info->device_model_version);
dm = NULL;
break;
if (rc) {
*nr_entries = 0;
*xrdm = NULL;
- LOG(ERROR, "Could not get reserved device memory maps.\n");
+ LOG(ERROR, "Could not get reserved device memory maps.");
}
return rc;
}
ret = xc_domain_getinfolist(CTX->xch, domid, 1, &info);
if (ret != 1)
{
- LOGE(ERROR, "getinfolist failed %d\n", ret);
+ LOGE(ERROR, "getinfolist failed %d", ret);
return ERROR_FAIL;
}
if (info.domain != domid)
int rc = 0;
if (pthread_mutexattr_init(&attr) != 0) {
- LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR,
- "Failed to init mutex attributes\n");
+ LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR,
+ "Failed to init mutex attributes");
return ERROR_FAIL;
}
if (pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE) != 0) {
- LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR,
- "Failed to set mutex attributes\n");
+ LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR,
+ "Failed to set mutex attributes");
rc = ERROR_FAIL;
goto out;
}
if (pthread_mutex_init(lock, &attr) != 0) {
- LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR,
- "Failed to init mutex\n");
+ LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR, "Failed to init mutex");
rc = ERROR_FAIL;
goto out;
}
const unsigned char *buf = NULL; \
size_t len = 0; \
yajl_gen_get_buf((yajl_ctx)->g, &buf, &len); \
- LIBXL__LOG(libxl__gc_owner((yajl_ctx)->gc), \
- LIBXL__LOG_DEBUG, "response:\n%s", buf); \
+ LIBXL__LOG(libxl__gc_owner((yajl_ctx)->gc), LIBXL__LOG_DEBUG,
+ "response:\n", buf); \
yajl_gen_free((yajl_ctx)->g); \
(yajl_ctx)->g = NULL; \
} while (0)
break;
default:
LIBXL__LOG(libxl__gc_owner(gc), LIBXL__LOG_ERROR,
- "Try append an object is not a map/array (%i)\n",
+ "Try append an object is not a map/array (%i)",
dst->type);
return ERROR_FAIL;
}
switch (dev->backend_kind) {
case LIBXL__DEVICE_KIND_VBD:
if (num_exec != 0) {
- LOG(DEBUG, "num_exec %d, not running hotplug scripts\n", num_exec);
+ LOG(DEBUG, "num_exec %d, not running hotplug scripts", num_exec);
rc = 0;
goto out;
}
*/
if ((num_exec > 1) ||
(libxl_get_stubdom_id(CTX, dev->domid) && num_exec)) {
- LOG(DEBUG, "num_exec %d, not running hotplug scripts\n", num_exec);
+ LOG(DEBUG, "num_exec %d, not running hotplug scripts", num_exec);
rc = 0;
goto out;
}
if (o) {
rc = qmp_handle_response(gc, qmp, o);
} else {
- LOG(ERROR, "Parse error of : %s\n", s);
+ LOG(ERROR, "Parse error of : %s", s);
return -1;
}
default:
rc = ERROR_FAIL;
- LOG(ERROR, "Unknown emulator for HVM domain\n");
+ LOG(ERROR, "Unknown emulator for HVM domain");
goto err;
}
stream->emu_sub_hdr.index = 0;
e820_entries++;
if (e820_entries >= E820MAX) {
- LOG(ERROR, "Ooops! Too many entries in the memory map!\n");
+ LOG(ERROR, "Ooops! Too many entries in the memory map!");
rc = ERROR_INVAL;
goto out;
}