[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [Qemu-devel] [PATCH for-3.0 2/3] linux-user: Do not r
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [Qemu-trivial] [Qemu-devel] [PATCH for-3.0 2/3] linux-user: Do not report "syscall not implemented" by default |
Date: |
Fri, 6 Jul 2018 13:26:56 -0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
On 07/06/2018 01:08 PM, Peter Maydell wrote:
> On 6 July 2018 at 16:51, Philippe Mathieu-Daudé <address@hidden> wrote:
>> This can still be reported using the "-d unimp" command line option.
>>
>> Code change produced with:
>>
>> git ls-files linux-user | \
>> xargs sed -i -E 's/fprintf\(stderr,\s?(".*not
>> implemented\\n")\);/qemu_log_mask(LOG_UNIMP, \1);/g'
>>
>> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
>> ---
>> linux-user/cris/signal.c | 4 ++--
>> linux-user/microblaze/signal.c | 4 ++--
>> linux-user/nios2/signal.c | 2 +-
>> linux-user/sparc/signal.c | 4 ++--
>> 4 files changed, 7 insertions(+), 7 deletions(-)
>>
>> diff --git a/linux-user/cris/signal.c b/linux-user/cris/signal.c
>> index 0b405247cf..1e02194377 100644
>> --- a/linux-user/cris/signal.c
>> +++ b/linux-user/cris/signal.c
>> @@ -146,7 +146,7 @@ void setup_rt_frame(int sig, struct target_sigaction *ka,
>> target_siginfo_t *info,
>> target_sigset_t *set, CPUCRISState *env)
>> {
>> - fprintf(stderr, "CRIS setup_rt_frame: not implemented\n");
>> + qemu_log_mask(LOG_UNIMP, "setup_rt_frame: not implemented\n");
>
> Your regex seems to have gone a bit awry here, because it's lost
> the "CRIS" part of the string (similarly below).
Oh I deliberately dropped it when using 'git add -p' after the regex
because I noticed neither nios2 nor sparc arch were using it, and I
don't think this is a relevant information.
Do you prefer I restore them, I reword the commit message, or even add
similar description for the nios2/sparc?
Thanks,
Phil.
- [Qemu-trivial] [PATCH for-3.0 0/3] Sanitize linux-user stdout, Philippe Mathieu-Daudé, 2018/07/06
- [Qemu-trivial] [PATCH for-3.0 1/3] linux-user: Do not report "Unsupported syscall" by default, Philippe Mathieu-Daudé, 2018/07/06
- [Qemu-trivial] [PATCH for-3.0 2/3] linux-user: Do not report "syscall not implemented" by default, Philippe Mathieu-Daudé, 2018/07/06
- [Qemu-trivial] [PATCH for-3.0 3/3] linux-user: Report error message on stderr, rather than stdout, Philippe Mathieu-Daudé, 2018/07/06
- Re: [Qemu-trivial] [Qemu-devel] [PATCH for-3.0 0/3] Sanitize linux-user stdout, Richard Henderson, 2018/07/06
- Re: [Qemu-trivial] [PATCH for-3.0 0/3] Sanitize linux-user stdout, Laurent Vivier, 2018/07/08