[libvirt PATCH 7/8] Unify error message when namespaces are unsupported
Ján Tomko
jtomko at redhat.com
Sat Mar 18 13:38:26 UTC 2023
Some helpers used a period at the end, others did not.
Signed-off-by: Ján Tomko <jtomko at redhat.com>
---
src/qemu/qemu_namespace.c | 2 +-
src/util/virprocess.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/qemu/qemu_namespace.c b/src/qemu/qemu_namespace.c
index 89d631ee5a..ab50f47821 100644
--- a/src/qemu/qemu_namespace.c
+++ b/src/qemu/qemu_namespace.c
@@ -1392,7 +1392,7 @@ qemuNamespaceMknodPaths(virDomainObj *vm G_GNUC_UNUSED,
bool *created G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
- _("Namespaces are not supported on this platform."));
+ _("Namespaces are not supported on this platform"));
return -1;
}
diff --git a/src/util/virprocess.c b/src/util/virprocess.c
index 39ca5de811..9143edc868 100644
--- a/src/util/virprocess.c
+++ b/src/util/virprocess.c
@@ -708,7 +708,7 @@ int virProcessSetNamespaces(size_t nfdlist G_GNUC_UNUSED,
int *fdlist G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
- _("Namespaces are not supported on this platform."));
+ _("Namespaces are not supported on this platform"));
return -1;
}
#endif
@@ -1491,7 +1491,7 @@ int
virProcessSetupPrivateMountNS(void)
{
virReportSystemError(ENOSYS, "%s",
- _("Namespaces are not supported on this platform."));
+ _("Namespaces are not supported on this platform"));
return -1;
}
@@ -1499,7 +1499,7 @@ int
virProcessNamespaceAvailable(unsigned int ns G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
- _("Namespaces are not supported on this platform."));
+ _("Namespaces are not supported on this platform"));
return -1;
}
--
2.39.2
More information about the libvir-list
mailing list