On Fri, Jun 26, 2015 at 02:12:00PM +0200, Pino Toscano wrote:
> > +    warn "$0: skipping test for btrfs UUID change feature is not 
> > available\n";
> > +}
> 
> IIRC 'warn' prints the newline at the end already.

Actually in Perl, 'warn' and 'die' have magical behaviour here.
Without \n, they print the current line number.  With \n, the current
line number is suppressed:

$ perl -e 'die "foo"'
foo at -e line 1.
$ perl -e 'die "foo\n"'
foo

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

_______________________________________________
Libguestfs mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libguestfs

Reply via email to