qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v7 8/9] qemu-log: support simple pid substitutio


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH v7 8/9] qemu-log: support simple pid substitution for logs
Date: Fri, 26 Feb 2016 12:21:23 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

On 02/22/2016 07:59 AM, Alex Bennée wrote:
> 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 <address@hidden>
> Reviewed-by: Leandro Dorileo <address@hidden>
> Reviewed-by: Aurelien Jarno <address@hidden>
> 
> ---
> v5
>   - add another r-b
> v7
>   - simpler error check as suggested by Eric Blake
>   - don't g_error, just error_report (so we don't crash from monitor)
>   - add some unit tests
> ---
>  tests/test-logging.c | 39 +++++++++++++++++++++++++++++++++++++++
>  util/log.c           | 22 ++++++++++++++++++++--
>  2 files changed, 59 insertions(+), 2 deletions(-)


Reviewed-by: Richard Henderson <address@hidden>


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]