g_auto(virBuffer) buf = VIR_BUFFER_INITIALIZER;
size_t i;
- virBufferAsprintf(&buf, _("event 'graphics' for domain '%1$s': "
- "%2$s local[%3$s %4$s %5$s] remote[%6$s %7$s %8$s] %9$s\n"),
+ virBufferAsprintf(&buf, _("event 'graphics' for domain '%1$s': %2$s local[%3$s %4$s %5$s] remote[%6$s %7$s %8$s] %9$s\n"),
virDomainGetName(dom),
virshGraphicsPhaseToString(phase),
virshGraphicsAddressToString(local->family),
{
g_auto(virBuffer) buf = VIR_BUFFER_INITIALIZER;
- virBufferAsprintf(&buf, _("event 'disk-change' for domain '%1$s' disk %2$s: "
- "%3$s -> %4$s: %5$s\n"),
+ virBufferAsprintf(&buf, _("event 'disk-change' for domain '%1$s' disk %2$s: %3$s -> %4$s: %5$s\n"),
virDomainGetName(dom),
alias,
NULLSTR(oldSrc),
{
g_auto(virBuffer) buf = VIR_BUFFER_INITIALIZER;
- virBufferAsprintf(&buf, _("event 'agent-lifecycle' for domain '%1$s': state: "
- "'%2$s' reason: '%3$s'\n"),
+ virBufferAsprintf(&buf, _("event 'agent-lifecycle' for domain '%1$s': state: '%2$s' reason: '%3$s'\n"),
virDomainGetName(dom),
UNKNOWNSTR(virshEventAgentLifecycleStateTypeToString(state)),
UNKNOWNSTR(virshEventAgentLifecycleReasonTypeToString(reason)));
{
g_auto(virBuffer) buf = VIR_BUFFER_INITIALIZER;
- virBufferAsprintf(&buf, _("event 'migration-iteration' for domain '%1$s': "
- "iteration: '%2$d'\n"),
+ virBufferAsprintf(&buf, _("event 'migration-iteration' for domain '%1$s': iteration: '%2$d'\n"),
virDomainGetName(dom),
iteration);
{
g_auto(virBuffer) buf = VIR_BUFFER_INITIALIZER;
- virBufferAsprintf(&buf, _("event 'block-threshold' for domain '%1$s': "
- "dev: %2$s(%3$s) %4$llu %5$llu\n"),
+ virBufferAsprintf(&buf, _("event 'block-threshold' for domain '%1$s': dev: %2$s(%3$s) %4$llu %5$llu\n"),
virDomainGetName(dom),
dev, NULLSTR(path), threshold, excess);
virshEventPrint(opaque, &buf);
if (!blocking) {
if (verbose) {
- vshError(ctl, "%s", _("--verbose requires at least one of --timeout, "
- "--wait, --pivot, or --keep-overlay"));
+ vshError(ctl, "%s", _("--verbose requires at least one of --timeout, --wait, --pivot, or --keep-overlay"));
return false;
}
if (async) {
- vshError(ctl, "%s", _("--async requires at least one of --timeout, "
- "--wait, --pivot, or --keep-overlay"));
+ vshError(ctl, "%s", _("--async requires at least one of --timeout, --wait, --pivot, or --keep-overlay"));
return false;
}
}
goto cleanup;
}
- vshPrintExtra(ctl, "\n%s", _("Commit complete, overlay "
- "image kept"));
+ vshPrintExtra(ctl, "\n%s", _("Commit complete, overlay image kept"));
} else {
vshPrintExtra(ctl, "\n%s", _("Now in synchronized phase"));
}
if (!blocking) {
if (verbose) {
- vshError(ctl, "%s", _("--verbose requires at least one of --timeout, "
- "--wait, --pivot, or --finish"));
+ vshError(ctl, "%s", _("--verbose requires at least one of --timeout, --wait, --pivot, or --finish"));
return false;
}
if (async) {
- vshError(ctl, "%s", _("--async requires at least one of --timeout, "
- "--wait, --pivot, or --finish"));
+ vshError(ctl, "%s", _("--async requires at least one of --timeout, --wait, --pivot, or --finish"));
return false;
}
}
if (!(vol_string || remove_all_storage) && wipe_storage) {
vshError(ctl,
- _("'--wipe-storage' requires '--storage <string>' or "
- "'--remove-all-storage'"));
+ _("'--wipe-storage' requires '--storage <string>' or '--remove-all-storage'"));
return false;
}
if (vol_string || remove_all_storage) {
if (running) {
vshError(ctl,
- _("Storage volume deletion is supported only on "
- "stopped domains"));
+ _("Storage volume deletion is supported only on stopped domains"));
goto cleanup;
}
if (has_managed_save) {
if (!managed_save) {
vshError(ctl, "%s",
- _("Refusing to undefine while domain managed save "
- "image exists"));
+ _("Refusing to undefine while domain managed save image exists"));
goto cleanup;
}
if (virDomainManagedSaveRemove(dom, 0) < 0) {
g_autofree char *set_field = g_strdup(opt->data);
if (!(set_val = strchr(set_field, '='))) {
- vshError(ctl, "%s", _("Invalid syntax for --set, "
- "expecting name=value"));
+ vshError(ctl, "%s", _("Invalid syntax for --set, expecting name=value"));
goto cleanup;
}
return false;
if (cpulist && !(enable || disable)) {
- vshError(ctl, _("One of options --enable or --disable is required by "
- "option --cpulist"));
+ vshError(ctl, _("One of options --enable or --disable is required by option --cpulist"));
return false;
}
if (virMacAddrCompare(tmp_mac, mac) == 0) {
if (matchNode) {
/* this is the 2nd match, so it's ambiguous */
- vshError(ctl, _("Domain has multiple interfaces matching MAC address %1$s. "
- "You must use detach-device and specify the device pci address to remove it."),
+ vshError(ctl, _("Domain has multiple interfaces matching MAC address %1$s. You must use detach-device and specify the device pci address to remove it."),
mac);
return false;
}
if (virDomainStartDirtyRateCalc(dom, seconds, flags) < 0)
return false;
- vshPrintExtra(ctl, _("Start to calculate domain's memory "
- "dirty rate successfully.\n"));
+ vshPrintExtra(ctl, _("Start to calculate domain's memory dirty rate successfully.\n"));
return true;
}
nodes_cnt = virXPathNodeSet("/capabilities/host/topology/cells/cell/pages",
ctxt, &nodes);
if (nodes_cnt <= 0) {
- vshError(ctl, "%s", _("could not get information about "
- "supported page sizes"));
+ vshError(ctl, "%s", _("could not get information about supported page sizes"));
goto cleanup;
}
}
ctxt, &nodes);
if (nodes_cnt == -1) {
- vshError(ctl, "%s", _("could not get information about "
- "NUMA topology"));
+ vshError(ctl, "%s", _("could not get information about NUMA topology"));
return false;
}
while (nodes[i]->properties) {
if (xmlRemoveProp(nodes[i]->properties) < 0) {
vshError(ctl,
- _("Cannot extract CPU definition from domain "
- "capabilities XML"));
+ _("Cannot extract CPU definition from domain capabilities XML"));
return NULL;
}
}
if (optTable + optName + optUUID > 1) {
vshError(ctl, "%s",
- _("Only one argument from --table, --name and --uuid "
- "may be specified."));
+ _("Only one argument from --table, --name and --uuid may be specified."));
return false;
}
if (optTable + optUUID > 1) {
vshError(ctl, "%s",
- _("Only one argument from --table and --uuid "
- "may be specified."));
+ _("Only one argument from --table and --uuid may be specified."));
return false;
}
device = list->devices[i];
if ((ncaps = virNodeDeviceNumOfCaps(device)) < 0) {
- vshError(ctl, "%s", _("Failed to get capability numbers "
- "of the device"));
+ vshError(ctl, "%s", _("Failed to get capability numbers of the device"));
goto cleanup;
}
/* There is no way to get the pool type */
if (VSH_MATCH(VIR_CONNECT_LIST_STORAGE_POOLS_FILTERS_POOL_TYPE)) {
- vshError(ctl, "%s", _("Filtering using --type is not supported "
- "by this libvirt"));
+ vshError(ctl, "%s", _("Filtering using --type is not supported by this libvirt"));
goto cleanup;
}
virConnectSetKeepAlive(c, interval, count) != 0) {
if (keepalive_forced) {
vshError(ctl, "%s",
- _("Cannot setup keepalive on connection "
- "as requested, disconnecting"));
+ _("Cannot setup keepalive on connection as requested, disconnecting"));
g_clear_pointer(&c, virConnectClose);
goto cleanup;
}
if (ret < 0)
vshError(ctl, "%s", _("Failed to disconnect from the hypervisor"));
else if (ret > 0)
- vshError(ctl, "%s", _("One or more references were leaked after "
- "disconnect from the hypervisor"));
+ vshError(ctl, "%s", _("One or more references were leaked after disconnect from the hypervisor"));
}
priv->conn = virshConnect(ctl, name ? name : ctl->connname, readonly);
if (ret < 0)
vshError(ctl, "%s", _("Failed to disconnect from the hypervisor"));
else if (ret > 0)
- vshError(ctl, "%s", _("One or more references were leaked after "
- "disconnect from the hypervisor"));
+ vshError(ctl, "%s", _("One or more references were leaked after disconnect from the hypervisor"));
}
virResetLastError();
if (ret < 0)
vshError(ctl, "%s", _("Failed to disconnect from the admin server"));
else if (ret > 0)
- vshError(ctl, "%s", _("One or more references were leaked after "
- "disconnect from the hypervisor"));
+ vshError(ctl, "%s", _("One or more references were leaked after disconnect from the hypervisor"));
priv->conn = NULL;
return ret;
}
if (!nparams) {
vshError(ctl, "%s",
- _("At least one of options --min-workers, --max-workers, "
- "--priority-workers is mandatory"));
+ _("At least one of options --min-workers, --max-workers, --priority-workers is mandatory"));
goto cleanup;
}
VIR_THREADPOOL_WORKERS_MAX, &max) &&
virTypedParamsGetUInt(params, nparams,
VIR_THREADPOOL_WORKERS_MIN, &min) && min > max) {
- vshError(ctl, "%s", _("--min-workers must be less than or equal to "
- "--max-workers"));
+ vshError(ctl, "%s", _("--min-workers must be less than or equal to --max-workers"));
goto cleanup;
}
goto cleanup;
if (virAdmServerGetClientLimits(srv, ¶ms, &nparams, 0) < 0) {
- vshError(ctl, "%s", _("Unable to retrieve client limits "
- "from server's configuration"));
+ vshError(ctl, "%s", _("Unable to retrieve client limits from server's configuration"));
goto cleanup;
}
#undef PARSE_CMD_TYPED_PARAM
if (!nparams) {
- vshError(ctl, "%s", _("At least one of options --max-clients, "
- "--max-unauth-clients is mandatory"));
+ vshError(ctl, "%s", _("At least one of options --max-clients, --max-unauth-clients is mandatory"));
goto cleanup;
}
virTypedParamsGetUInt(params, nparams,
VIR_SERVER_CLIENTS_UNAUTH_MAX, &unauth_max) &&
unauth_max > max) {
- vshError(ctl, "%s", _("--max-unauth-clients must be less than or equal to "
- "--max-clients"));
+ vshError(ctl, "%s", _("--max-unauth-clients must be less than or equal to --max-clients"));
goto cleanup;
}
vshSaveLibvirtError();
error:
- vshError(ctl, "%s", _("Unable to change server's client-related "
- "configuration limits"));
+ vshError(ctl, "%s", _("Unable to change server's client-related configuration limits"));
goto cleanup;
}
bool hasVirtFlag = false;
virArch arch = virArchFromHost();
const char *kvmhint =
- _("Check that CPU and firmware supports virtualization "
- "and kvm module is loaded");
+ _("Check that CPU and firmware supports virtualization and kvm module is loaded");
if (!(flags = virHostValidateGetCPUFlags()))
return -1;
switch ((int)arch) {
case VIR_ARCH_X86_64:
hasVirtFlag = true;
- kvmhint = _("Check that the 'kvm-intel' or 'kvm-amd' modules are "
- "loaded & the BIOS has enabled virtualization");
+ kvmhint = _("Check that the 'kvm-intel' or 'kvm-amd' modules are loaded & the BIOS has enabled virtualization");
if (virBitmapIsBitSet(flags, VIR_HOST_VALIDATE_CPU_FLAG_SVM) ||
virBitmapIsBitSet(flags, VIR_HOST_VALIDATE_CPU_FLAG_VMX))
hasHwVirt = true;
virHostMsgPass();
} else {
virHostMsgFail(VIR_HOST_VALIDATE_FAIL,
- _("Only emulated CPUs are available, performance will be "
- "significantly limited"));
+ _("Only emulated CPUs are available, performance will be significantly limited"));
ret = -1;
}
}
kvmhint) < 0)
ret = -1;
else if (virHostValidateDeviceAccessible("CH", "/dev/kvm", VIR_HOST_VALIDATE_FAIL,
- _("Check /dev/kvm is world writable or you are in "
- "a group that is allowed to access it")) < 0)
+ _("Check /dev/kvm is world writable or you are in a group that is allowed to access it")) < 0)
ret = -1;
}
bool hasHwVirt = false;
bool hasVirtFlag = false;
virArch arch = virArchFromHost();
- const char *kvmhint = _("Check that CPU and firmware supports virtualization "
- "and kvm module is loaded");
+ const char *kvmhint = _("Check that CPU and firmware supports virtualization and kvm module is loaded");
if (!(flags = virHostValidateGetCPUFlags()))
return -1;
case VIR_ARCH_I686:
case VIR_ARCH_X86_64:
hasVirtFlag = true;
- kvmhint = _("Check that the 'kvm-intel' or 'kvm-amd' modules are "
- "loaded & the BIOS has enabled virtualization");
+ kvmhint = _("Check that the 'kvm-intel' or 'kvm-amd' modules are loaded & the BIOS has enabled virtualization");
if (virBitmapIsBitSet(flags, VIR_HOST_VALIDATE_CPU_FLAG_SVM) ||
virBitmapIsBitSet(flags, VIR_HOST_VALIDATE_CPU_FLAG_VMX))
hasHwVirt = true;
virHostMsgPass();
} else {
virHostMsgFail(VIR_HOST_VALIDATE_FAIL,
- _("Host not compatible with KVM; HW virtualization CPU features not found. "
- "Only emulated CPUs are available; performance will be significantly limited"));
+ _("Host not compatible with KVM; HW virtualization CPU features not found. Only emulated CPUs are available; performance will be significantly limited"));
ret = -1;
}
}
ret = -1;
else if (virHostValidateDeviceAccessible("QEMU", "/dev/kvm",
VIR_HOST_VALIDATE_FAIL,
- _("Check /dev/kvm is world writable or you are in "
- "a group that is allowed to access it")) < 0)
+ _("Check /dev/kvm is world writable or you are in a group that is allowed to access it")) < 0)
ret = -1;
}
if (virHostValidateDeviceExists("QEMU", "/dev/vhost-net",
VIR_HOST_VALIDATE_WARN,
- _("Load the 'vhost_net' module to improve performance "
- "of virtio networking")) < 0)
+ _("Load the 'vhost_net' module to improve performance of virtio networking")) < 0)
ret = -1;
if (virHostValidateDeviceExists("QEMU", "/dev/net/tun",
if (relax_avail) {
vshPrintRaw(ctl,
- _("i - turn off validation and try to redefine "
- "again"),
+ _("i - turn off validation and try to redefine again"),
NULL);
}
const char *msg G_GNUC_UNUSED,
bool relax_avail G_GNUC_UNUSED)
{
- vshDebug(ctl, VSH_ERR_WARNING, "%s", _("This function is not "
- "supported on WIN32 platform"));
+ vshDebug(ctl, VSH_ERR_WARNING, "%s", _("This function is not supported on WIN32 platform"));
return 0;
}
#endif /* WIN32 */
}
if (!groups && !set) {
- vshError(ctl, "%s", _("command groups and command set "
- "cannot both be NULL"));
+ vshError(ctl, "%s", _("command groups and command set cannot both be NULL"));
return false;
}
vshInitReload(vshControl *ctl)
{
if (!cmdGroups && !cmdSet) {
- vshError(ctl, "%s", _("command groups and command are both NULL "
- "run vshInit before reloading"));
+ vshError(ctl, "%s", _("command groups and command are both NULL run vshInit before reloading"));
return false;
}