[PATCH 02/27] ch: Move error messages onto a single line

Michal Privoznik mprivozn at redhat.com
Fri Aug 25 07:39:59 UTC 2023


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

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 src/ch/ch_driver.c  | 3 +--
 src/ch/ch_monitor.c | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/ch/ch_driver.c b/src/ch/ch_driver.c
index 45cdbfd37c..b62645a8c8 100644
--- a/src/ch/ch_driver.c
+++ b/src/ch/ch_driver.c
@@ -1379,8 +1379,7 @@ chDomainPinEmulator(virDomainPtr dom,
 
             if (virDomainCgroupSetupCpusetCpus(cgroup_emulator, pcpumap) < 0) {
                 virReportError(VIR_ERR_OPERATION_INVALID, "%s",
-                               _("failed to set cpuset.cpus in cgroup"
-                                 " for emulator threads"));
+                               _("failed to set cpuset.cpus in cgroup for emulator threads"));
                 goto endjob;
             }
         }
diff --git a/src/ch/ch_monitor.c b/src/ch/ch_monitor.c
index a4b921931b..4f32b1ee4c 100644
--- a/src/ch/ch_monitor.c
+++ b/src/ch/ch_monitor.c
@@ -637,8 +637,7 @@ virCHMonitorCurlPerform(CURL *handle)
 
     if (responseCode < 0) {
         virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
-                       _("curl_easy_getinfo(CURLINFO_RESPONSE_CODE) returned a "
-                         "negative response code"));
+                       _("curl_easy_getinfo(CURLINFO_RESPONSE_CODE) returned a negative response code"));
         return -1;
     }
 
-- 
2.41.0



More information about the libvir-list mailing list