]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libvirt: log all flags parameters
authorEric Blake <eblake@redhat.com>
Tue, 16 Aug 2011 20:24:12 +0000 (14:24 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 24 Aug 2011 14:34:49 +0000 (08:34 -0600)
commitba0c219902a511dc287c6294db76091adc44bc7f
tree6b5e98342d77d82a377ea8da594bee500960997d
parent131540277ee7608e5f77a9310df559bacfad3d76
libvirt: log all flags parameters

I was testing a virsh patch, and wanted to see if I had passed the
flags I thought.  But with LIBVIRT_DEBUG in the environment, I just
saw:

14:24:52.359: 15022: debug : virDomainSnapshotNum:15586 : dom=0xc9c180, (VM: name=rhel_6-64, uuid=48f8e8e7-e14f-0e14-02f0-ce71997bdcab),

including a trailing space.  This fixes the issues.

* src/libvirt.c: Log flag parameters, even if currently unused.
(VIR_DOMAIN_DEBUG_0): Drop trailing comma in log.
(VIR_DOMAIN_DEBUG_1): Split guts into...
(VIR_DOMAIN_DEBUG_2): ...new macro.
src/libvirt.c