]> Git Repo - qemu.git/commit
qemu-log: support simple pid substitution for logs
authorAlex Bennée <[email protected]>
Tue, 15 Mar 2016 14:30:23 +0000 (14:30 +0000)
committerPaolo Bonzini <[email protected]>
Tue, 22 Mar 2016 21:20:18 +0000 (22:20 +0100)
commitf6880b7f48ffd4aa038d7a964a3820b1c18d5307
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 <[email protected]>
Reviewed-by: Leandro Dorileo <[email protected]>
Reviewed-by: Aurelien Jarno <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-Id: <1458052224[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
tests/test-logging.c
util/log.c
This page took 0.026014 seconds and 4 git commands to generate.