[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libvir] [PATCH 9/9] lxcError: mark a string and add to the list of nearly-checked functions



lxcError: mark a string and add to the list of nearly-checked functions

* Makefile.maint (msg_gen_function): Add, but commented-out.
* src/lxc_conf.c (lxcParseXML): Mark a diagnostic for translation.

Signed-off-by: Jim Meyering <meyering redhat com>
---
 Makefile.maint |    1 +
 src/lxc_conf.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Makefile.maint b/Makefile.maint
index 518e59b..a357d74 100644
--- a/Makefile.maint
+++ b/Makefile.maint
@@ -323,6 +323,7 @@ msg_gen_function += openvzLog
 # msg_gen_function += error
 # msg_gen_function += virXenError
 # msg_gen_function += testError
+# msg_gen_function += lxcError

 func_or := $(shell printf '$(msg_gen_function)'|tr -s '[[:space:]]' '|')
 func_re := ($(func_or))
diff --git a/src/lxc_conf.c b/src/lxc_conf.c
index e0896ec..3923807 100644
--- a/src/lxc_conf.c
+++ b/src/lxc_conf.c
@@ -398,7 +398,7 @@ static lxc_vm_def_t * lxcParseXML(virConnectPtr conn, xmlDocPtr docPtr)
     if ((xmlProp = xmlGetProp(rootNodePtr, BAD_CAST "id"))) {
         if (0 > virStrToLong_i((char*)xmlProp, NULL, 10, &(containerDef->id))) {
             lxcError(conn, NULL, VIR_ERR_INTERNAL_ERROR,
-                     "invalid domain id");
+                     _("invalid domain id"));
             goto error;
         }
     } else {
--
1.5.5.rc0.22.g467c


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]