[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH 12/48] virsh: Use vshPrint instead of printf



On 2012年08月04日 00:06, Daniel P. Berrange wrote:
On Fri, Aug 03, 2012 at 11:48:15PM +0800, Osier Yang wrote:
---
  tools/virsh-host.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/virsh-host.c b/tools/virsh-host.c
index 98d9e62..d9d09b4 100644
--- a/tools/virsh-host.c
+++ b/tools/virsh-host.c
@@ -573,7 +573,7 @@ cmdQemuMonitorCommand(vshControl *ctl, const vshCmd *cmd)
      if (virDomainQemuMonitorCommand(dom, monitor_cmd,&result, flags)<  0)
          goto cleanup;

-    printf("%s\n", result);
+    vshPrint(ctl, "%s\n", result);

      ret = true;


ACK, trivial

Daniel

Thanks, pushed.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]