]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: fix VIR_DEBUG on mingw
authorEric Blake <eblake@redhat.com>
Tue, 24 May 2011 17:20:19 +0000 (11:20 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 24 May 2011 18:34:43 +0000 (12:34 -0600)
commit4486f3a209cff1da44b2bb83f0aa41a67d5e623e
treee32f5bdd0c03e08d5df97c4de231a7c0b10dfcf5
parent764c282cdf41700689648ec6bf98ac2f098b18bc
build: fix VIR_DEBUG on mingw

We don't use the gnulib vsnprintf replacement, which means that
on mingw, vsnprintf doesn't support %zn or %lln.

And as it turns out, VIR_GET_VAR_STR was a rather inefficient
reimplementation of virVasprintf logic.

* src/util/logging.c (VIR_GET_VAR_STR): Drop.
(virLogMessage): Inline a simpler version here.
* src/util/virterror.c (VIR_GET_VAR_STR, virRaiseErrorFull):
Likewise.
Reported by Matthias Bolte.
src/util/logging.c
src/util/virterror.c