From: Chris Lalancette Date: Fri, 30 Jul 2010 15:28:55 +0000 (-0400) Subject: Fix a bogus warning when parsing X-Git-Tag: v0.8.3~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f72e4a9db1730b2d824656c1961e2697cbb93185;p=thirdparty%2Flibvirt.git Fix a bogus warning when parsing When parsing hostdev, the following message would be emitted: 10:17:19.052: error : virDomainHostdevDefParseXML:3748 : internal error unknown node alias However, alias is appropriately parsed in virDomainDeviceInfoParseXML anyway. Disable the error message in the initial XML parsing loop. Signed-off-by: Chris Lalancette --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 883c682e66..40e6d1c40a 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -3716,6 +3716,9 @@ virDomainHostdevDefParseXML(const xmlNodePtr node, goto error; } } else if (xmlStrEqual(cur->name, BAD_CAST "address")) { + /* address is parsed as part of virDomainDeviceInfoParseXML */ + } else if (xmlStrEqual(cur->name, BAD_CAST "alias")) { + /* alias is parsed as part of virDomainDeviceInfoParseXML */ } else { virDomainReportError(VIR_ERR_INTERNAL_ERROR, _("unknown node %s"), cur->name);