qemu-log: support simple pid substitution for logs
commitf6880b7f48ffd4aa038d7a964a3820b1c18d5307
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 15 Mar 2016 14:30:23 +0000 (15 14:30 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Mar 2016 21:20:18 +0000 (22 22:20 +0100)
tree7b66d60ea95a3eb3bee2a99bbd622d157ece35a4
parent064860778bf1539f95c886fef86080aa132ca1e2
qemu-log: support simple pid substitution for logs

When debugging stuff that occurs over several forks it would be useful
not to keep overwriting the one logfile you've set-up. This allows a
simple %d to be included once in the logfile parameter which is
substituted with getpid().

As the test cases involve checking user output they need
g_test_trap_subprocess() support. As a result they are currently skipped
on Travis builds due to the older glib involved.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Leandro Dorileo <l@dorileo.org>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Message-Id: <1458052224-9316-10-git-send-email-alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/test-logging.c
util/log.c