From nobody Tue Feb 10 20:28:14 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1531204060296596.3446877168625; Mon, 9 Jul 2018 23:27:40 -0700 (PDT) Received: from localhost ([::1]:46012 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcm7f-0000Y9-A3 for importer@patchew.org; Tue, 10 Jul 2018 02:27:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48355) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcm4W-0006ZX-WC for qemu-devel@nongnu.org; Tue, 10 Jul 2018 02:24:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcm4S-0005ll-Iv for qemu-devel@nongnu.org; Tue, 10 Jul 2018 02:24:25 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:53170) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fcm4S-0005k5-6y for qemu-devel@nongnu.org; Tue, 10 Jul 2018 02:24:20 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.167]) with ESMTPSA (Nemesis) id 0LeUyk-1gQzXL0rnC-00qVCN; Tue, 10 Jul 2018 08:24:09 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Tue, 10 Jul 2018 08:23:51 +0200 Message-Id: <20180710062352.9843-3-laurent@vivier.eu> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180710062352.9843-1-laurent@vivier.eu> References: <20180710062352.9843-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:OBfHqqKdu6ZcrFVuCuWGgI4C01l/EbIDfjxMgpIQyHfZ0vAThE0 UWVG+TV2drTvmfyoNh8Ug5LRLywx7o8JqqNwpQvAf1kOWvDa98TkrFZvVSVslvMZwZ5BX1/ xn91yt4kTnPx3ZwCrRLQBqPrxgFOb738D8Mxc49Z8virs6EzR1aOG1oXCmF9pjNS4UsO/5w AlGPkN82Y/Huue08oAS3g== X-UI-Out-Filterresults: notjunk:1;V01:K0:90E+geHcE2U=:cHmEVLucCRTxIG5Newe9GX 6edCDQJnqGtM5ENiOM5CqTfwXgx5QKiFfeiGclXiqcwfXK5Fb9czuA9GRztsrjesOy47DhZdX 66XTRcT6DU381sqGtuJAw1wv0bo6icbp/KICueuh21ziGYpNWhh1noxJ9jz4DMgmtGkBxDtnE /HBi19HVUw3+IJYvJSFqSG+sKSCQ4GXFyL0hznpakwmDHZeWcEgTVoJkoHMLP1Ohxz4HPb90R NdGfkvY98M1a9j/fzqlCMa6sT/1O2C0YwGfhPXs9bvEtFmzJJZ52cg6Oo4qKZFoJqJeK1fPuN gAqbmhRCE/KPWgnq2B0S4oK+Z5RnJVaUFT1FBeJV5BweCLJt6ifcUhbZ1BOpUJtZmHwTUXTSp EeGyZVOU2RdoxiFSh86VjXgVhqYD6BmFlCK5gusWVCBiy35iAyidgcW104BCuIGZyxzXdLsBl uZuJpjhyHolhh6zVU6DNNnIFOeja/wpiep1eoPfesdU0r1sRgnnWiX/zMC9QPr61L9vhjQaFC rtw2Rf0DMF/8MyESEZ9cYunbPFQf849xrRgXiDw/+/mCDgI6H1eozc9QVXXqG6mlpAb+HeZah pPLWxQs8DlciNu3RqRfNGH++1g2X08wA7ZiwcGxGOuE+Gm2f9w7qLkKGjgwaEyxqcOwiBBVDB 8Ap1oespFhI83tb50Wzw/eUUNYtBB6x/lwYxZiG+/fW/IfDJ/ZTm8k+fJhjMQ/4SEuoZnm5/7 UItgC9U3ZJ86DFuZ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.126.131 Subject: [Qemu-devel] [PULL 2/3] linux-user: Do not report "syscall not implemented" by default X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Riku Voipio , Laurent Vivier , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 From: Philippe Mathieu-Daud=C3=A9 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_lo= g_mask(LOG_UNIMP, \1);/g' Signed-off-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20180706155127.7483-3-f4bug@amsat.org> Signed-off-by: Laurent Vivier --- 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 *k= a, 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"); } =20 long do_sigreturn(CPUCRISState *env) @@ -183,6 +183,6 @@ badframe: long do_rt_sigreturn(CPUCRISState *env) { trace_user_do_rt_sigreturn(env, 0); - fprintf(stderr, "CRIS do_rt_sigreturn: not implemented\n"); + qemu_log_mask(LOG_UNIMP, "do_rt_sigreturn: not implemented\n"); return -TARGET_ENOSYS; } diff --git a/linux-user/microblaze/signal.c b/linux-user/microblaze/signal.c index 712ee522b2..80950c2181 100644 --- a/linux-user/microblaze/signal.c +++ b/linux-user/microblaze/signal.c @@ -200,7 +200,7 @@ void setup_rt_frame(int sig, struct target_sigaction *k= a, target_siginfo_t *info, target_sigset_t *set, CPUMBState *env) { - fprintf(stderr, "Microblaze setup_rt_frame: not implemented\n"); + qemu_log_mask(LOG_UNIMP, "setup_rt_frame: not implemented\n"); } =20 long do_sigreturn(CPUMBState *env) @@ -240,6 +240,6 @@ badframe: long do_rt_sigreturn(CPUMBState *env) { trace_user_do_rt_sigreturn(env, 0); - fprintf(stderr, "Microblaze do_rt_sigreturn: not implemented\n"); + qemu_log_mask(LOG_UNIMP, "do_rt_sigreturn: not implemented\n"); return -TARGET_ENOSYS; } diff --git a/linux-user/nios2/signal.c b/linux-user/nios2/signal.c index 4985dc2212..7d535065ed 100644 --- a/linux-user/nios2/signal.c +++ b/linux-user/nios2/signal.c @@ -203,7 +203,7 @@ give_sigsegv: long do_sigreturn(CPUNios2State *env) { trace_user_do_sigreturn(env, 0); - fprintf(stderr, "do_sigreturn: not implemented\n"); + qemu_log_mask(LOG_UNIMP, "do_sigreturn: not implemented\n"); return -TARGET_ENOSYS; } =20 diff --git a/linux-user/sparc/signal.c b/linux-user/sparc/signal.c index 55e9d6f9b2..b4c60aa446 100644 --- a/linux-user/sparc/signal.c +++ b/linux-user/sparc/signal.c @@ -278,7 +278,7 @@ void setup_rt_frame(int sig, struct target_sigaction *k= a, target_siginfo_t *info, target_sigset_t *set, CPUSPARCState *env) { - fprintf(stderr, "setup_rt_frame: not implemented\n"); + qemu_log_mask(LOG_UNIMP, "setup_rt_frame: not implemented\n"); } =20 long do_sigreturn(CPUSPARCState *env) @@ -357,7 +357,7 @@ segv_and_exit: long do_rt_sigreturn(CPUSPARCState *env) { trace_user_do_rt_sigreturn(env, 0); - fprintf(stderr, "do_rt_sigreturn: not implemented\n"); + qemu_log_mask(LOG_UNIMP, "do_rt_sigreturn: not implemented\n"); return -TARGET_ENOSYS; } =20 --=20 2.17.1