Signed-off-by: Jiri Denemark <jdenemar(a)redhat.com>
---
src/conf/network_conf.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/conf/network_conf.c b/src/conf/network_conf.c
index a2220c05a6..ef3415cd89 100644
--- a/src/conf/network_conf.c
+++ b/src/conf/network_conf.c
@@ -1362,8 +1362,9 @@ virNetworkForwardDefParseXML(const char *networkName,
forwardDev = virXPathString("string(./@dev)", ctxt);
if (forwardDev && (nForwardAddrs > 0 || nForwardPfs > 0)) {
- virReportError(VIR_ERR_XML_ERROR, "%s",
- _("the <forward> 'dev' attribute cannot be used
when <address> or <pf> sub-elements are present in network %1$s"));
+ virReportError(VIR_ERR_XML_ERROR,
+ _("the <forward> 'dev' attribute cannot be used
when <address> or <pf> sub-elements are present in network %1$s"),
+ networkName);
return -1;
}
--
2.43.0