From: Jiri Denemark Date: Thu, 20 Feb 2025 13:28:22 +0000 (+0100) Subject: virsh: Drop extra newlines at the end of error messages X-Git-Tag: v11.1.0-rc1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffad5ce45972c6bd0e570cf18ae29a0f5b420b81;p=thirdparty%2Flibvirt.git virsh: Drop extra newlines at the end of error messages Signed-off-by: Jiri Denemark Reviewed-by: Michal Privoznik --- diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 2db88a1a7d..c8c341b3d1 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -2648,7 +2648,7 @@ virshBlockJobInfo(vshControl *ctl, if (!raw) { speed <<= 20; if (speed >> 20 != info.bandwidth) { - vshError(ctl, _("overflow in converting %1$ld MiB/s to bytes\n"), + vshError(ctl, _("overflow in converting %1$ld MiB/s to bytes"), info.bandwidth); return false; } @@ -3831,7 +3831,7 @@ cmdUndefine(vshControl *ctl, const vshCmd *cmd) if (!vol.vol) { vshError(ctl, - _("Storage volume '%1$s'(%2$s) is not managed by libvirt. Remove it manually.\n"), + _("Storage volume '%1$s'(%2$s) is not managed by libvirt. Remove it manually."), target, source); vshResetLibvirtError(); continue; @@ -3848,7 +3848,7 @@ cmdUndefine(vshControl *ctl, const vshCmd *cmd) for (i = 0; i < nvol_list; i++) { if (vol_list[i]) { vshError(ctl, - _("Volume '%1$s' was not found in domain's definition.\n"), + _("Volume '%1$s' was not found in domain's definition."), vol_list[i]); found = true; }