libvirt/src/util
Daniel P. Berrange cee61fc298 Imprint all logs with version + package build information
The logging functions are enhanced so that immediately prior to
the first log message being printed to any output channel, the
libvirt package version will be printed.

eg

 $ LIBVIRT_DEBUG=1 virsh
 18:13:28.013: 17536: info : libvirt version: 0.8.7
 18:13:28.013: 17536: debug : virInitialize:361 : register drivers
 ...

The 'configure' script gains two new arguments which can be
used as

   --with-packager="Fedora Project, x86-01.phx2.fedoraproject.org, 01-27-2011-18:00:10"
   --with-packager-version="1.fc14"

to allow distros to append a custom string with package specific
data.

The RPM specfile is modified so that it appends the RPM version,
the build host, the build date and the packager name.

eg

 $ LIBVIRT_DEBUG=1 virsh
 18:14:52.086: 17551: info : libvirt version: 0.8.7, package: 1.fc13 (Fedora Project, x86-01.phx2.fedoraproject.org, 01-27-2011-18:00:10)
 18:14:52.086: 17551: debug : virInitialize:361 : register drivers

Thus when distro packagers receive bug reports they can clearly
see what version was in use, even if the bug reporter mistakenly
or intentionally lies about version/builds

* src/util/logging.c: Output version data prior to first log message
* libvirt.spec.in: Include RPM release, date, hostname & packager
* configure.ac: Add --with-packager & --with-packager-version args
2011-02-11 14:13:08 +00:00
..
authhelper.c esx: Move username and password helper functions to authhelper.c 2010-03-16 20:15:32 +01:00
authhelper.h esx: Move username and password helper functions to authhelper.c 2010-03-16 20:15:32 +01:00
bitmap.c Set bitmap size when allocating a bitmap 2010-12-22 13:37:52 -07:00
bitmap.h build: fix cppi warnings 2010-05-21 16:02:18 -06:00
bridge.c Set broadcast address for IPv4 addresses on virtual network bridges 2010-12-31 11:34:24 -05:00
bridge.h Replace brSetInetAddress/brSetInetNetmask with brAddInetAddress 2010-12-23 15:53:26 -05:00
buf.c xend: Escape reserved sexpr characters 2010-11-22 16:43:29 -05:00
buf.h xend: Escape reserved sexpr characters 2010-11-22 16:43:29 -05:00
cgroup.c cgroup: Implement blkio.weight tuning API. 2011-02-08 11:25:33 -07:00
cgroup.h cgroup: Implement blkio.weight tuning API. 2011-02-08 11:25:33 -07:00
command.c command: avoid hanging on daemon processes 2010-12-21 11:49:49 -07:00
command.h command: ease use with virBuffer, and fix qemu leak 2010-12-10 14:37:09 -07:00
conf.c conf: Fix parsing python style triple quotes 2010-11-22 16:37:21 -05:00
conf.h esx: Allow '-' in VMX entry names 2010-09-23 10:37:10 +02:00
dnsmasq.c deprecate fclose() and introduce VIR_{FORCE_}FCLOSE() 2010-11-16 21:13:29 -05:00
dnsmasq.h Convert virNetwork to use virSocketAddr everywhere 2010-10-22 12:07:02 +01:00
ebtables.c qemu: plug memory leak 2010-12-01 10:00:10 -07:00
ebtables.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
event.c Fixes for documentation extraction 2010-10-13 13:50:07 +02:00
event.h Fix documentation for virEventAddTimeout() 2010-10-26 10:23:03 +02:00
files.c deprecate fclose() and introduce VIR_{FORCE_}FCLOSE() 2010-11-16 21:13:29 -05:00
files.h maint: reject raw close, popen in 'make syntax-check' 2011-01-29 10:36:47 -07:00
hash.c Fix up a comment in virHashUpdateEntry 2010-02-01 09:39:54 -05:00
hash.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
hooks.c Remove bogus includes 2010-12-02 16:00:47 -07:00
hooks.h Add hook utilities 2010-03-29 18:21:04 +02:00
hostusb.c hostusb: Properly handle 'usbX' sysfs files 2010-06-02 09:57:55 -04:00
hostusb.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
interface.c bye to close(), welcome to VIR_(FORCE_)CLOSE() 2010-11-09 15:48:48 -05:00
interface.h add 802.1Qbh and 802.1Qbg handling 2010-06-02 21:35:22 -04:00
iptables.c Log an error on attempts to add a NAT rule for non-IPv4 addresses 2011-01-05 11:59:47 -05:00
iptables.h Update iptables.c to also support ip6tables. 2010-12-23 15:54:32 -05:00
json.c build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
json.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
logging.c Imprint all logs with version + package build information 2011-02-11 14:13:08 +00:00
logging.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
macvtap.c macvtap: fix 2 nla_put expressions (non-serious bug) 2011-02-03 14:36:27 -05:00
macvtap.h Prefer C style comments over C++ ones 2011-01-29 00:59:45 +01:00
memory.c Preserve errno across calls to error reporting functions & VIR_FREE 2010-12-23 16:48:16 -05:00
memory.h Fix conflicts with glibc globals 2011-02-03 08:58:45 -07:00
network.c network: plug unininitialized read found by valgrind 2011-01-10 15:22:57 -07:00
network.h Improve virSocketAddrMask[ByPrefix] API 2010-12-31 11:34:35 -05:00
pci.c Create file in virFileWriteStr() if it doesn't exist 2010-12-03 08:08:22 -07:00
pci.h pciResetDevice: use inactive devices to determine safe reset 2010-07-26 18:43:04 +02:00
processinfo.c build: update gnulib 2010-05-06 14:35:38 -06:00
processinfo.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
qparams.c qparams.c: do not skip va_end, twice 2010-02-19 11:52:04 +01:00
qparams.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
stats_linux.c deprecate fclose() and introduce VIR_{FORCE_}FCLOSE() 2010-11-16 21:13:29 -05:00
stats_linux.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
storage_file.c Fix 32-bit int truncation in QED header check 2010-11-23 15:18:03 +00:00
storage_file.h qed: Minor updates to QED support patches 2010-11-22 13:21:35 -07:00
sysinfo.c sysinfo: refactor xml formatting 2011-02-08 19:37:21 -07:00
sysinfo.h sysinfo: refactor xml formatting 2011-02-08 19:37:21 -07:00
threadpool.c threadpool impl 2010-12-09 11:39:17 -07:00
threadpool.h threadpool: allow NULL jobdata 2011-01-03 14:45:00 -07:00
threads-pthread.c daemon, threads: plug a memory leak 2010-12-13 17:01:14 -07:00
threads-pthread.h Introduce portability APIs for creating threads 2010-11-11 16:03:09 +00:00
threads-win32.c threads: add virThreadID for debugging use 2010-12-06 09:50:20 -07:00
threads-win32.h Introduce portability APIs for creating threads 2010-11-11 16:03:09 +00:00
threads.c build: avoid pthreads-win32 on mingw 2010-06-10 06:05:31 -06:00
threads.h threads: add virThreadID for debugging use 2010-12-06 09:50:20 -07:00
util.c Reset logging filter function when forking 2011-02-09 16:21:55 +00:00
util.h util: add missing string->integer conversion functions 2011-01-13 15:10:40 -07:00
uuid.c bye to close(), welcome to VIR_(FORCE_)CLOSE() 2010-11-09 15:48:48 -05:00
uuid.h Expose a host UUID in the capabilities XML 2010-05-25 17:09:18 +01:00
virtaudit.c util: add virVasprintf 2010-12-02 11:23:15 -07:00
virtaudit.h Add printf format attribute annotation to virAuditSend method 2010-10-27 17:03:21 +01:00
virterror_internal.h Filter out certain expected error messages from libvirtd 2011-01-26 14:54:23 +00:00
virterror.c Filter out certain expected error messages from libvirtd 2011-01-26 14:54:23 +00:00
xml.c util: add missing string->integer conversion functions 2011-01-13 15:10:40 -07:00
xml.h util: add missing string->integer conversion functions 2011-01-13 15:10:40 -07:00