]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Use helper functions to format the journal iov array
authorMiloslav Trmač <mitr@redhat.com>
Wed, 17 Oct 2012 18:17:16 +0000 (20:17 +0200)
committerEric Blake <eblake@redhat.com>
Thu, 15 Nov 2012 03:20:02 +0000 (20:20 -0700)
commit39c814ff46da3db0520ddc29b1d62a03cab240b5
tree3565ee656c265018d227d9f8bc08010538c76fab
parent37f7a1faf1f5b1d485a7eb439009eb9dc21a083c
Use helper functions to format the journal iov array

This simplifies the top-level code, at the cost of using a little more
stack space.  The primary benefit is being able to send more fields
without knowing in advance how many of them, and of which types, these
fields will be, and without having to individually add buffer variables.

The code imposes an upper limit on the total number of iovs/buffers
used, and fields that wouldn't fit are silently dropped.  This is not
significant in this patch, but will affect the following one.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
src/util/logging.c