]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: avoid gcc preprocessor extensions
authorEric Blake <eblake@redhat.com>
Wed, 11 May 2011 19:24:50 +0000 (13:24 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 11 May 2011 19:28:50 +0000 (13:28 -0600)
commitbc6bfeaa1769811635ef1384eecebda68dee9522
treeb15308eefb283358ba7f7c3c787f4a503aa6c935
parentb65f37a4a1feae6bc808d8ae8a8ff662bc146f66
build: avoid gcc preprocessor extensions

Use of ',##__VA_ARGS__' is a gcc extension not guaranteed by
C99; thankfully, we can avoid it by lumping the format argument
into the var-args set.

* src/util/logging.h (VIR_DEBUG_INT, VIR_INFO_INT, VIR_WARN_INT)
(VIR_ERROR_INT, VIR_DEBUG, VIR_INFO, VIR_WARN, VIR_ERROR): Stick
to C99 var-arg macro syntax.
* examples/domain-events/events-c/event-test.c (VIR_DEBUG):
Simplify.
examples/domain-events/events-c/event-test.c
src/util/logging.h