1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-10-13 11:33:55 +03:00

tools: 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:04:34 +02:00
parent d918ac2977
commit f9947f75b9
11 changed files with 47 additions and 94 deletions

View File

@@ -33,8 +33,7 @@ int virHostValidateCh(void)
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;
@@ -43,8 +42,7 @@ int virHostValidateCh(void)
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;
@@ -64,8 +62,7 @@ int virHostValidateCh(void)
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;
}
}
@@ -75,8 +72,7 @@ int virHostValidateCh(void)
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;
}