Add a prefix to output when tracing (RHBZ#673479).
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 28 Jan 2011 11:14:42 +0000 (11:14 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 28 Jan 2011 11:51:54 +0000 (11:51 +0000)
commit1d999540bddd7aea7c2d0fef8b15223d4acc645f
tree7fc83c8fba64776b1d78ea00c477a2212a8ce945
parent77df7d6d537cebe05e06bf07e6e4a2082fe6656a
Add a prefix to output when tracing (RHBZ#673479).

Also separate the call and return lines so that everything can be
easily 'grepped' from debug output.  The trace output now looks like
this:

$ guestfish -x -N fs exit
libguestfs: trace: is_config
libguestfs: trace: is_config = 1
libguestfs: trace: add_drive "test1.img"
libguestfs: trace: add_drive = 0
libguestfs: trace: is_config
libguestfs: trace: is_config = 1
libguestfs: trace: launch
libguestfs: trace: launch = 0
libguestfs: trace: part_disk "/dev/sda" "mbr"
libguestfs: trace: part_disk = 0
&c.
generator/generator_c.ml