qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

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>

authored by

Philippe Mathieu-Daudé and committed by
Laurent Vivier
8f0ea816 122f9c83

+7 -7
+2 -2
linux-user/cris/signal.c
··· 146 146 target_siginfo_t *info, 147 147 target_sigset_t *set, CPUCRISState *env) 148 148 { 149 - fprintf(stderr, "CRIS setup_rt_frame: not implemented\n"); 149 + qemu_log_mask(LOG_UNIMP, "setup_rt_frame: not implemented\n"); 150 150 } 151 151 152 152 long do_sigreturn(CPUCRISState *env) ··· 183 183 long do_rt_sigreturn(CPUCRISState *env) 184 184 { 185 185 trace_user_do_rt_sigreturn(env, 0); 186 - fprintf(stderr, "CRIS do_rt_sigreturn: not implemented\n"); 186 + qemu_log_mask(LOG_UNIMP, "do_rt_sigreturn: not implemented\n"); 187 187 return -TARGET_ENOSYS; 188 188 }
+2 -2
linux-user/microblaze/signal.c
··· 200 200 target_siginfo_t *info, 201 201 target_sigset_t *set, CPUMBState *env) 202 202 { 203 - fprintf(stderr, "Microblaze setup_rt_frame: not implemented\n"); 203 + qemu_log_mask(LOG_UNIMP, "setup_rt_frame: not implemented\n"); 204 204 } 205 205 206 206 long do_sigreturn(CPUMBState *env) ··· 240 240 long do_rt_sigreturn(CPUMBState *env) 241 241 { 242 242 trace_user_do_rt_sigreturn(env, 0); 243 - fprintf(stderr, "Microblaze do_rt_sigreturn: not implemented\n"); 243 + qemu_log_mask(LOG_UNIMP, "do_rt_sigreturn: not implemented\n"); 244 244 return -TARGET_ENOSYS; 245 245 }
+1 -1
linux-user/nios2/signal.c
··· 203 203 long do_sigreturn(CPUNios2State *env) 204 204 { 205 205 trace_user_do_sigreturn(env, 0); 206 - fprintf(stderr, "do_sigreturn: not implemented\n"); 206 + qemu_log_mask(LOG_UNIMP, "do_sigreturn: not implemented\n"); 207 207 return -TARGET_ENOSYS; 208 208 } 209 209
+2 -2
linux-user/sparc/signal.c
··· 278 278 target_siginfo_t *info, 279 279 target_sigset_t *set, CPUSPARCState *env) 280 280 { 281 - fprintf(stderr, "setup_rt_frame: not implemented\n"); 281 + qemu_log_mask(LOG_UNIMP, "setup_rt_frame: not implemented\n"); 282 282 } 283 283 284 284 long do_sigreturn(CPUSPARCState *env) ··· 357 357 long do_rt_sigreturn(CPUSPARCState *env) 358 358 { 359 359 trace_user_do_rt_sigreturn(env, 0); 360 - fprintf(stderr, "do_rt_sigreturn: not implemented\n"); 360 + qemu_log_mask(LOG_UNIMP, "do_rt_sigreturn: not implemented\n"); 361 361 return -TARGET_ENOSYS; 362 362 } 363 363