]> xenbits.xensource.com Git - libvirt.git/commitdiff
hypervisor: Move error messages onto a single line
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 24 Aug 2023 15:03:58 +0000 (17:03 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 4 Sep 2023 07:35:36 +0000 (09:35 +0200)
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>
src/hypervisor/domain_cgroup.c
src/hypervisor/virhostdev.c

index 20ad96b11cc9fef20f447f753be9846915d67cc3..2b9a1cc9b17df314d84c17334eda07d4aacf829f 100644 (file)
@@ -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;
         }
     }
index b95d6bf3d618b9e080ec8ff8b09e6a74681a15bf..4672bd8785357787a8d037ce66ea3212b0bf846a 100644 (file)
@@ -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;
         }