]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: xml: remove function names from error messages
authorJán Tomko <jtomko@redhat.com>
Sat, 18 Mar 2023 11:47:18 +0000 (12:47 +0100)
committerJán Tomko <jtomko@redhat.com>
Mon, 20 Mar 2023 13:32:40 +0000 (14:32 +0100)
The function name is already logged, and these can happen only as a
result of a programmer error.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
src/util/virxml.c

index c0789c062cd1d28aef01c3d54156dd2f8e44ada6..a84048e14a9eb90c1d13e9efb29403f39299d7ca 100644 (file)
@@ -864,7 +864,7 @@ virXPathBoolean(const char *xpath,
 
     if ((ctxt == NULL) || (xpath == NULL)) {
         virReportError(VIR_ERR_INTERNAL_ERROR,
-                       "%s", _("Invalid parameter to virXPathBoolean()"));
+                       "%s", _("Invalid parameter"));
         return -1;
     }
     obj = xmlXPathEval(BAD_CAST xpath, ctxt);
@@ -917,7 +917,7 @@ virXPathNode(const char *xpath,
 
     if ((ctxt == NULL) || (xpath == NULL)) {
         virReportError(VIR_ERR_INTERNAL_ERROR,
-                       "%s", _("Invalid parameter to virXPathNode()"));
+                       "%s", _("Invalid parameter"));
         return NULL;
     }
     obj = xmlXPathEval(BAD_CAST xpath, ctxt);
@@ -952,7 +952,7 @@ virXPathNodeSet(const char *xpath,
 
     if ((ctxt == NULL) || (xpath == NULL)) {
         virReportError(VIR_ERR_INTERNAL_ERROR,
-                       "%s", _("Invalid parameter to virXPathNodeSet()"));
+                       "%s", _("Invalid parameter"));
         return -1;
     }