aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2018-07-06 12:51:26 -0300
committerLaurent Vivier <laurent@vivier.eu>2018-07-09 00:52:04 +0200
commit8f0ea816435c0f6b7bcf8bd0f46f705ccca0316a (patch)
treeaf501e100223894d13d420007d9f8f5b7caf95b5
parent122f9c83f2ef1cd90152ea8116fe6e80c8e85994 (diff)
downloadqemu-8f0ea816435c0f6b7bcf8bd0f46f705ccca0316a.zip
qemu-8f0ea816435c0f6b7bcf8bd0f46f705ccca0316a.tar.gz
qemu-8f0ea816435c0f6b7bcf8bd0f46f705ccca0316a.tar.bz2
linux-user: Do not report "syscall not implemented" by default
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é <f4bug@amsat.org> Message-Id: <20180706155127.7483-3-f4bug@amsat.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
-rw-r--r--linux-user/cris/signal.c4
-rw-r--r--linux-user/microblaze/signal.c4
-rw-r--r--linux-user/nios2/signal.c2
-rw-r--r--linux-user/sparc/signal.c4
4 files changed, 7 insertions, 7 deletions
diff --git a/linux-user/cris/signal.c b/linux-user/cris/signal.c
index 0b40524..1e02194 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");
}
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 712ee52..80950c2 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 *ka,
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");
}
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 4985dc2..7d53506 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;
}
diff --git a/linux-user/sparc/signal.c b/linux-user/sparc/signal.c
index 55e9d6f..b4c60aa 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 *ka,
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");
}
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;
}