[RFC PATCH 2/8] Don't translate strings used with VIR_DEBUG

Peter Krempa pkrempa at redhat.com
Thu Apr 13 08:15:50 UTC 2023


Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
 src/util/virnetlink.c | 6 +++---
 src/vz/vz_driver.c    | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/util/virnetlink.c b/src/util/virnetlink.c
index f18a08c277..866f4d8f2b 100644
--- a/src/util/virnetlink.c
+++ b/src/util/virnetlink.c
@@ -1300,7 +1300,7 @@ virNetlinkGetNeighbor(void **nlData G_GNUC_UNUSED,
  */
 int virNetlinkEventServiceStop(unsigned int protocol G_GNUC_UNUSED)
 {
-    VIR_DEBUG("%s", _(unsupported));
+    VIR_DEBUG("%s", unsupported);
     return 0;
 }

@@ -1310,7 +1310,7 @@ int virNetlinkEventServiceStop(unsigned int protocol G_GNUC_UNUSED)
  */
 int virNetlinkEventServiceStopAll(void)
 {
-    VIR_DEBUG("%s", _(unsupported));
+    VIR_DEBUG("%s", unsupported);
     return 0;
 }

@@ -1321,7 +1321,7 @@ int virNetlinkEventServiceStopAll(void)
 int virNetlinkEventServiceStart(unsigned int protocol G_GNUC_UNUSED,
                                 unsigned int groups G_GNUC_UNUSED)
 {
-    VIR_DEBUG("%s", _(unsupported));
+    VIR_DEBUG("%s", unsupported);
     return 0;
 }

diff --git a/src/vz/vz_driver.c b/src/vz/vz_driver.c
index 56dc236233..401ca041ed 100644
--- a/src/vz/vz_driver.c
+++ b/src/vz/vz_driver.c
@@ -4101,7 +4101,7 @@ vzStateInitialize(bool privileged,
         return VIR_DRV_STATE_INIT_ERROR;

     if (prlsdkInit() < 0) {
-        VIR_DEBUG("%s", _("Can't initialize Parallels SDK"));
+        VIR_DEBUG("Can't initialize Parallels SDK");
         return VIR_DRV_STATE_INIT_ERROR;
     }

@@ -4144,7 +4144,7 @@ vzRegister(void)

     prlctl_path = virFindFileInPath(PRLCTL);
     if (!prlctl_path) {
-        VIR_DEBUG("%s", _("Can't find prlctl command in the PATH env"));
+        VIR_DEBUG("Can't find prlctl command in the PATH env");
         return 0;
     }

-- 
2.39.2



More information about the libvir-list mailing list