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

Daniel P. Berrange berrange at redhat.com
Fri Aug 3 16:06:14 UTC 2012


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
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list