From 0e588509f25c183f897587c42a0cb95768d3a046 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Thu, 24 Aug 2023 17:03:58 +0200 Subject: [PATCH] hypervisor: 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 Reviewed-by: Pavel Hrdina --- src/hypervisor/domain_cgroup.c | 3 +-- src/hypervisor/virhostdev.c | 9 +++------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/hypervisor/domain_cgroup.c b/src/hypervisor/domain_cgroup.c index 20ad96b11c..2b9a1cc9b1 100644 --- a/src/hypervisor/domain_cgroup.c +++ b/src/hypervisor/domain_cgroup.c @@ -233,8 +233,7 @@ virDomainCgroupSetMemoryLimitParameters(virCgroup *cgroup, if (mem_limit > swap_limit) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("memory hard_limit tunable value must be lower " - "than or equal to swap_hard_limit")); + _("memory hard_limit tunable value must be lower than or equal to swap_hard_limit")); return -1; } } diff --git a/src/hypervisor/virhostdev.c b/src/hypervisor/virhostdev.c index b95d6bf3d6..4672bd8785 100644 --- a/src/hypervisor/virhostdev.c +++ b/src/hypervisor/virhostdev.c @@ -423,8 +423,7 @@ virHostdevSaveNetConfig(virDomainHostdevDef *hostdev, if (virHostdevIsVirtualFunction(hostdev) != 1) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Interface type hostdev is currently supported on" - " SR-IOV Virtual Functions only")); + _("Interface type hostdev is currently supported on SR-IOV Virtual Functions only")); return -1; } @@ -511,8 +510,7 @@ virHostdevRestoreNetConfig(virDomainHostdevDef *hostdev, if (virHostdevIsVirtualFunction(hostdev) != 1) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Interface type hostdev is currently supported on" - " SR-IOV Virtual Functions only")); + _("Interface type hostdev is currently supported on SR-IOV Virtual Functions only")); return -1; } @@ -688,8 +686,7 @@ virHostdevPreparePCIDevicesImpl(virHostdevManager *mgr, if (hdrType != VIR_PCI_HEADER_ENDPOINT) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Non-endpoint PCI devices cannot be assigned " - "to guests")); + _("Non-endpoint PCI devices cannot be assigned to guests")); goto cleanup; }