From a9d4944f8e9739d9e64cef45cf0ca1091cc0e69f Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Thu, 29 May 2008 14:56:12 +0000 Subject: [PATCH] Don't add trailing blanks in dominfo output --- ChangeLog | 4 ++++ src/virsh.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d84c73157d..50505ae84f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu May 29 10:55:00 EST 2008 Daniel P. Berrange + + * src/virsh.c: Don't add trailing blanks in dominfo output + Thu May 29 10:41:00 EST 2008 Daniel P. Berrange * python/libvirt-python-api.xml: Add API overrides for functions diff --git a/src/virsh.c b/src/virsh.c index c6698e2cf2..4e91bebcac 100644 --- a/src/virsh.c +++ b/src/virsh.c @@ -1535,7 +1535,7 @@ cmdDominfo(vshControl * ctl, vshCmd * cmd) vshPrint(ctl, "%-15s %lu kB\n", _("Max memory:"), info.maxMem); else - vshPrint(ctl, "%-15s %-15s\n", _("Max memory:"), + vshPrint(ctl, "%-15s %s\n", _("Max memory:"), _("no limit")); vshPrint(ctl, "%-15s %lu kB\n", _("Used memory:"), @@ -1546,7 +1546,7 @@ cmdDominfo(vshControl * ctl, vshCmd * cmd) } if (!virDomainGetAutostart(dom, &autostart)) { - vshPrint(ctl, "%-15s %-15s\n", _("Autostart:"), + vshPrint(ctl, "%-15s %s\n", _("Autostart:"), autostart ? _("enable") : _("disable") ); } -- GitLab