[Libguestfs] [PATCH] v2v: adding input -i ova

Richard W.M. Jones rjones at redhat.com
Sun Aug 24 10:51:28 UTC 2014


On Sun, Aug 24, 2014 at 11:48:09AM +0100, Richard W.M. Jones wrote:
>   printf "hash = \"%s\"\n" hash;
>   printf "sha1 = \"%s\"\n" sha1;

Or even better:

  printf "hash = %S\n" hash;
  printf "sha1 = %S\n" sha1;

%S (capital S) causes the compiler to print escape sequences for
non-printable characters.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v




More information about the Libguestfs mailing list