Signed-off-by: Ján Tomko <jtomko(a)redhat.com>
---
src/conf/storage_conf.c | 2 +-
src/storage/storage_backend_fs.c | 2 +-
src/storage/storage_backend_rbd.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/conf/storage_conf.c b/src/conf/storage_conf.c
index fb8a16a119..6588d5c8ef 100644
--- a/src/conf/storage_conf.c
+++ b/src/conf/storage_conf.c
@@ -1172,7 +1172,7 @@ virStoragePoolDefFormatBuf(virBufferPtr buf,
}
virBufferAsprintf(buf, "<pool type='%s'", type);
if (def->namespaceData && def->ns.href)
- virBufferAsprintf(buf, " %s", (def->ns.href)());
+ virXMLNamespaceFormatNS(buf, &def->ns);
virBufferAddLit(buf, ">\n");
virBufferAdjustIndent(buf, 2);
virBufferEscapeString(buf, "<name>%s</name>\n", def->name);
diff --git a/src/storage/storage_backend_fs.c b/src/storage/storage_backend_fs.c
index c2d0d7bd1f..4bed6df0bb 100644
--- a/src/storage/storage_backend_fs.c
+++ b/src/storage/storage_backend_fs.c
@@ -636,7 +636,7 @@ virStoragePoolDefFSNamespaceFormatXML(virBufferPtr buf,
static const char *
virStoragePoolDefFSNamespaceHref(void)
{
- return "xmlns:fs='" STORAGE_POOL_FS_NAMESPACE_HREF "'";
+ return STORAGE_POOL_FS_NAMESPACE_HREF;
}
#endif /* WITH_STORAGE_FS */
diff --git a/src/storage/storage_backend_rbd.c b/src/storage/storage_backend_rbd.c
index f86df9a2fa..2d6c51de35 100644
--- a/src/storage/storage_backend_rbd.c
+++ b/src/storage/storage_backend_rbd.c
@@ -178,7 +178,7 @@ virStoragePoolDefRBDNamespaceFormatXML(virBufferPtr buf,
static const char *
virStoragePoolDefRBDNamespaceHref(void)
{
- return "xmlns:rbd='" STORAGE_POOL_RBD_NAMESPACE_HREF
"'";
+ return STORAGE_POOL_RBD_NAMESPACE_HREF;
}
--
2.19.2