[libvirt] [PATCH] Fix some error strings in xml.c

Daniel P. Berrange berrange at redhat.com
Fri Feb 13 16:16:10 UTC 2009


On Fri, Feb 13, 2009 at 12:06:11PM +0000, Mark McLoughlin wrote:
> Just some copy-and-paste mixups.
> 
> Signed-off-by: Mark McLoughlin <markmc at redhat.com>
> ---
>  src/xml.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/xml.c b/src/xml.c
> index ad77eca..9c27a10 100644
> --- a/src/xml.c
> +++ b/src/xml.c
> @@ -140,7 +140,7 @@ virXPathLong(virConnectPtr conn,
>  
>      if ((ctxt == NULL) || (xpath == NULL) || (value == NULL)) {
>          virXMLError(conn, VIR_ERR_INTERNAL_ERROR,
> -                    "%s", _("Invalid parameter to virXPathNumber()"));
> +                    "%s", _("Invalid parameter to virXPathLong()"));
>          return (-1);
>      }
>      relnode = ctxt->node;
> @@ -195,7 +195,7 @@ virXPathULong(virConnectPtr conn,
>  
>      if ((ctxt == NULL) || (xpath == NULL) || (value == NULL)) {
>          virXMLError(conn, VIR_ERR_INTERNAL_ERROR,
> -                    "%s", _("Invalid parameter to virXPathNumber()"));
> +                    "%s", _("Invalid parameter to virXPathULong()"));
>          return (-1);
>      }
>      relnode = ctxt->node;

ACK


Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|




More information about the libvir-list mailing list