lxc: Move error messages onto a single line

Error messages are exempt from the 80 columns rule. Move them
onto one line.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Michal Privoznik 2023-08-24 17:03:58 +02:00
parent 2fa5c92b09
commit 8e48b9a313
4 changed files with 4 additions and 8 deletions

View File

@ -2182,8 +2182,7 @@ int lxcContainerStart(virDomainDef *def,
} else {
if (lxcNeedNetworkNamespace(def)) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
_("Config asks for inherit net namespace "
"as well as private network interfaces"));
_("Config asks for inherit net namespace as well as private network interfaces"));
goto cleanup;
}
VIR_DEBUG("Inheriting a net namespace");

View File

@ -654,8 +654,7 @@ static int lxcDomainSetMemoryFlags(virDomainPtr dom, unsigned long newmem,
if (flags & VIR_DOMAIN_MEM_MAXIMUM) {
if (def) {
virReportError(VIR_ERR_OPERATION_INVALID, "%s",
_("Cannot resize the max memory "
"on an active domain"));
_("Cannot resize the max memory on an active domain"));
goto endjob;
}

View File

@ -1126,8 +1126,7 @@ lxcParseConfigString(const char *config,
if (virConfGetValue(properties, "lxc.mount.fstab") ||
virConfGetValue(properties, "lxc.mount")) {
virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s",
_("lxc.mount.fstab or lxc.mount found, use "
"lxc.mount.entry lines instead"));
_("lxc.mount.fstab or lxc.mount found, use lxc.mount.entry lines instead"));
return NULL;
}

View File

@ -452,8 +452,7 @@ static int virLXCProcessSetupNamespaceNet(int ns_type, const char *name)
int fd;
if (ns_type != VIR_LXC_DOMAIN_NAMESPACE_SHARENET) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
_("'netns' namespace source can only be "
"used with sharenet"));
_("'netns' namespace source can only be used with sharenet"));
return -1;
}