if (mapfd < 0) {
if (errno == EPERM) {
virReportSystemError(errno, "%s",
- _("failed to initialize device BPF map; "
- "locked memory limit for libvirtd probably "
- "needs to be raised"));
+ _("failed to initialize device BPF map; locked memory limit for libvirtd probably needs to be raised"));
return -1;
} else {
virReportSystemError(errno, "%s",
virCgroupV2DevicesDetectProg(virCgroup *group G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
- _("cgroups v2 BPF devices not supported "
- "with this kernel"));
+ _("cgroups v2 BPF devices not supported with this kernel"));
return -1;
}
virCgroupV2DevicesCreateProg(virCgroup *group G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
- _("cgroups v2 BPF devices not supported "
- "with this kernel"));
+ _("cgroups v2 BPF devices not supported with this kernel"));
return -1;
}
virCgroupV2DevicesPrepareProg(virCgroup *group G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
- _("cgroups v2 BPF devices not supported "
- "with this kernel"));
+ _("cgroups v2 BPF devices not supported with this kernel"));
return -1;
}
virCommandDoAsyncIOHelper,
"cmd-async-io", false, cmd) < 0) {
virReportSystemError(errno, "%s",
- _("Unable to create thread "
- "to process command's IO"));
+ _("Unable to create thread to process command's IO"));
VIR_FREE(cmd->asyncioThread);
virCommandAbort(cmd);
ret = -1;
{
if (virKModIsProhibited(NBD_DRIVER)) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("Failed to load nbd module: "
- "administratively prohibited"));
+ _("Failed to load nbd module: administratively prohibited"));
return false;
} else {
g_autofree char *errbuf = NULL;
{
if (virStrcpyStatic(param->field, name) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- "%s", _("kernel cpu time field is too long"
- " for the destination"));
+ "%s", _("kernel cpu time field is too long for the destination"));
return -1;
}
param->value = value;
virCheckFlags(0, -1);
virReportError(VIR_ERR_NO_SUPPORT, "%s",
- _("node set memory parameters not implemented"
- " on this platform"));
+ _("node set memory parameters not implemented on this platform"));
return -1;
}
#endif
virCheckFlags(VIR_TYPED_PARAM_STRING_OKAY, -1);
virReportError(VIR_ERR_NO_SUPPORT, "%s",
- _("node get memory parameters not implemented"
- " on this platform"));
+ _("node get memory parameters not implemented on this platform"));
return -1;
}
#endif
} else {
if (!virJSONValueIsObject(existobj)) {
virReportError(VIR_ERR_INVALID_ARG, "%s",
- _("mixing nested objects and values is forbidden in "
- "JSON deflattening"));
+ _("mixing nested objects and values is forbidden in JSON deflattening"));
return -1;
}
}
virMediatedDeviceModelType model G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("mediated devices are not supported on non-linux "
- "platforms"));
+ _("mediated devices are not supported on non-linux platforms"));
return NULL;
}
void *ifr G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
- _("Network device configuration is not supported "
- "on this platform"));
+ _("Network device configuration is not supported on this platform"));
return -1;
}
#endif /* WITH_STRUCT_IFREQ */
if (vlan) {
if (vlan->nTags != 1 || vlan->trunk) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
- _("vlan trunking is not supported "
- "by SR-IOV network devices"));
+ _("vlan trunking is not supported by SR-IOV network devices"));
return -1;
}
virMacAddr *macaddr G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
- _("Unable to add address to interface "
- "multicast list on this platform"));
+ _("Unable to add address to interface multicast list on this platform"));
return -1;
}
#endif
virMacAddr *macaddr G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
- _("Unable to delete address from interface "
- "multicast list on this platform"));
+ _("Unable to delete address from interface multicast list on this platform"));
return -1;
}
#endif
if (geteuid() != 0) {
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
- _("Network bandwidth tuning is not available"
- " in session mode"));
+ _("Network bandwidth tuning is not available in session mode"));
return -1;
}
if (!ifname) {
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
- _("Unable to set bandwidth for interface because "
- "device name is unknown"));
+ _("Unable to set bandwidth for interface because device name is unknown"));
return -1;
}
if (geteuid() != 0) {
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
- _("Network bandwidth tuning is not available"
- " in session mode"));
+ _("Network bandwidth tuning is not available in session mode"));
return -1;
}
if (!ifname) {
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
- _("Unable to set bandwidth for interface because "
- "device name is unknown"));
+ _("Unable to set bandwidth for interface because device name is unknown"));
return -1;
}
if (nla_type(tb_vf_ports) != IFLA_VF_PORT) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("error while iterating over "
- "IFLA_VF_PORTS part"));
+ _("error while iterating over IFLA_VF_PORTS part"));
return -1;
}
if (nla_parse_nested(tb_port, IFLA_PORT_MAX, tb_vf_ports,
ifla_port_policy)) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("error parsing IFLA_VF_PORT "
- "during error reporting"));
+ _("error parsing IFLA_VF_PORT during error reporting"));
return -1;
}
if (tb_port[IFLA_PORT_INSTANCE_UUID]) {
if (virNetlinkSetBufferSize(nlhandle, 131702, 0) < 0) {
virReportSystemError(errno, "%s",
- _("cannot set netlink socket buffer "
- "size to 128k"));
+ _("cannot set netlink socket buffer size to 128k"));
goto error;
}
nl_socket_enable_msg_peek(nlhandle);
if (virCommandRun(cmd, NULL) < 0) {
virReportError(VIR_ERR_OPERATION_FAILED, "%s",
- _("Failed to query numad for the "
- "advisory nodeset"));
+ _("Failed to query numad for the advisory nodeset"));
VIR_FREE(output);
}
if (!has_preferred_many && nnodes != 1) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- "%s", _("NUMA memory tuning in 'preferred' mode "
- "only supports single node"));
+ "%s", _("NUMA memory tuning in 'preferred' mode only supports single node"));
return -1;
}
if (virPCIDeviceAddressIsEmpty(addr)) {
if (report)
virReportError(VIR_ERR_XML_ERROR, "%s",
- _("Invalid PCI address 0000:00:00, at least "
- "one of domain, bus, or slot must be > 0"));
+ _("Invalid PCI address 0000:00:00, at least one of domain, bus, or slot must be > 0"));
return false;
}
return true;
if ((min = sched_get_priority_min(pol)) < 0) {
virReportSystemError(errno, "%s",
- _("Cannot get minimum scheduler "
- "priority value"));
+ _("Cannot get minimum scheduler priority value"));
return -1;
}
if ((max = sched_get_priority_max(pol)) < 0) {
virReportSystemError(errno, "%s",
- _("Cannot get maximum scheduler "
- "priority value"));
+ _("Cannot get maximum scheduler priority value"));
return -1;
}
return 0;
virReportSystemError(ENOSYS, "%s",
- _("Process CPU scheduling is not supported "
- "on this platform"));
+ _("Process CPU scheduling is not supported on this platform"));
return -1;
}
case VIR_JSON_TYPE_ARRAY:
if (nested) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("nested JSON array to commandline conversion is "
- "not supported"));
+ _("nested JSON array to commandline conversion is not supported"));
return -1;
}
virResctrlLock(void)
{
virReportSystemError(ENOSYS, "%s",
- _("resctrl locking is not supported "
- "on this platform"));
+ _("resctrl locking is not supported on this platform"));
return -1;
}
virResctrlUnlock(int fd G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
- _("resctrl locking is not supported "
- "on this platform"));
+ _("resctrl locking is not supported on this platform"));
return -1;
}
!resctrl->membw_info->min_bandwidth ||
!resctrl->membw_info->bandwidth_granularity) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("Missing or inconsistent resctrl info for "
- "memory bandwidth allocation"));
+ _("Missing or inconsistent resctrl info for memory bandwidth allocation"));
return -1;
}
if ((maxWorkers == 0 && pool->maxWorkers > 0) ||
(maxWorkers > 0 && pool->maxWorkers == 0)) {
virReportError(VIR_ERR_INVALID_ARG, "%s",
- _("maxWorkers must not be switched from zero to non-zero"
- " and vice versa"));
+ _("maxWorkers must not be switched from zero to non-zero and vice versa"));
return -1;
}