From: Pavel Hrdina Date: Mon, 2 May 2016 12:49:38 +0000 (+0200) Subject: domain_conf: cleanup virDomainGraphicsListenDefParseXML X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=f161e401520a608c6119de86c1cf2dc4cfdc793d;p=libvirt.git domain_conf: cleanup virDomainGraphicsListenDefParseXML Signed-off-by: Pavel Hrdina --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 0967e32366..658145386e 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -10716,10 +10716,9 @@ virDomainGraphicsListenDefParseXML(virDomainGraphicsListenDefPtr def, if (network && network[0]) { if (def->type != VIR_DOMAIN_GRAPHICS_LISTEN_TYPE_NETWORK) { - /* network='xxx' never makes sense with anything except - * type='network' */ virReportError(VIR_ERR_XML_ERROR, "%s", - _("network attribute not allowed when listen type is not network")); + _("'network' attribute is valid only for listen " + "type 'network'")); goto error; } def->network = network;