[Libguestfs] [PATCH 3/3] lib: Remove some unnecessary translation of debugging messages.

Richard W.M. Jones rjones at redhat.com
Sat Aug 27 08:12:02 UTC 2016


---
 src/libvirt-domain.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c
index 7d5da2f..d54814f 100644
--- a/src/libvirt-domain.c
+++ b/src/libvirt-domain.c
@@ -433,7 +433,7 @@ libvirt_selinux_label (guestfs_h *g, xmlDocPtr doc,
   if (nr_nodes == 0)
     return 0;
   if (nr_nodes > 1) {
-    debug (g, _("ignoring %zu nodes matching '%s'"), nr_nodes, xpath_expr);
+    debug (g, "ignoring %zu nodes matching '%s'", nr_nodes, xpath_expr);
     return 0;
   }
 
@@ -552,7 +552,7 @@ for_each_disk (guestfs_h *g,
       } else if (STREQ (type, "network")) { /* type = "network", use source/@name */
         int hi;
 
-        debug (g, _("disk[%zu]: network device"), i);
+        debug (g, "disk[%zu]: network device", i);
         xpathCtx->node = nodes->nodeTab[i];
 
         /* Get the protocol (e.g. "rbd").  Required. */
@@ -567,7 +567,7 @@ for_each_disk (guestfs_h *g,
                 XML_ATTRIBUTE_NODE);
         attr = (xmlAttrPtr) xpprotocol->nodesetval->nodeTab[0];
         protocol = (char *) xmlNodeListGetString (doc, attr->children, 1);
-        debug (g, _("disk[%zu]: protocol: %s"), i, protocol);
+        debug (g, "disk[%zu]: protocol: %s", i, protocol);
 
         /* <source name="..."> is the path/exportname.  Optional. */
         xpfilename = xmlXPathEvalExpression (BAD_CAST "./source/@name",
@@ -586,7 +586,7 @@ for_each_disk (guestfs_h *g,
           assert (xpusername->nodesetval->nodeTab[0]->type == XML_ATTRIBUTE_NODE);
           attr = (xmlAttrPtr) xpusername->nodesetval->nodeTab[0];
           username = (char *) xmlNodeListGetString (doc, attr->children, 1);
-          debug (g, _("disk[%zu]: username: %s"), i, username);
+          debug (g, "disk[%zu]: username: %s", i, username);
         }
 
         xphost = xmlXPathEvalExpression (BAD_CAST "./source/host",
@@ -639,7 +639,7 @@ for_each_disk (guestfs_h *g,
                 XML_ATTRIBUTE_NODE);
         attr = (xmlAttrPtr) xpfilename->nodesetval->nodeTab[0];
         filename = (char *) xmlNodeListGetString (doc, attr->children, 1);
-        debug (g, _("disk[%zu]: filename: %s"), i, filename);
+        debug (g, "disk[%zu]: filename: %s", i, filename);
       }
       else
         /* For network protocols (eg. nbd), name may be omitted. */
-- 
2.7.4




More information about the Libguestfs mailing list