From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbTZZ-0001PB-Rw for qemu-devel@nongnu.org; Fri, 06 Jul 2018 12:27:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fbTZU-0003Ra-Us for qemu-devel@nongnu.org; Fri, 06 Jul 2018 12:27:05 -0400 Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= References: <20180706155127.7483-1-f4bug@amsat.org> <20180706155127.7483-3-f4bug@amsat.org> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: Date: Fri, 6 Jul 2018 13:26:56 -0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH for-3.0 2/3] linux-user: Do not report "syscall not implemented" by default List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Trivial , John Paul Adrian Glaubitz , Riku Voipio , Laurent Vivier , QEMU Developers On 07/06/2018 01:08 PM, Peter Maydell wrote: > On 6 July 2018 at 16:51, Philippe Mathieu-Daudé 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é >> --- >> 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.