summaryrefslogtreecommitdiffstats
path: root/cpu.c
diff options
context:
space:
mode:
authorRichard Henderson2022-04-17 20:30:11 +0200
committerRichard Henderson2022-04-20 19:51:11 +0200
commitec0d1849d990ae25017c7b611a4385f4ec2cc874 (patch)
treeff3991897f339cf596e175b8e5e05f77148afbc7 /cpu.c
parentsoftmmu: Use qemu_set_log_filename_flags (diff)
downloadqemu-ec0d1849d990ae25017c7b611a4385f4ec2cc874.tar.gz
qemu-ec0d1849d990ae25017c7b611a4385f4ec2cc874.tar.xz
qemu-ec0d1849d990ae25017c7b611a4385f4ec2cc874.zip
util/log: Remove qemu_log_close
The only real use is in cpu_abort, where we have just flushed the file via qemu_log_unlock, and are just about to force-crash the application via abort. We do not really need to close the FILE before the abort. The two uses in test-logging.c can be handled with qemu_set_log_filename_flags. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220417183019.755276-32-richard.henderson@linaro.org>
Diffstat (limited to 'cpu.c')
-rw-r--r--cpu.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/cpu.c b/cpu.c
index 7076ec123a..584ac78baf 100644
--- a/cpu.c
+++ b/cpu.c
@@ -407,7 +407,6 @@ void cpu_abort(CPUState *cpu, const char *fmt, ...)
cpu_dump_state(cpu, logfile, CPU_DUMP_FPU | CPU_DUMP_CCOP);
qemu_log_unlock(logfile);
}
- qemu_log_close();
}
va_end(ap2);
va_end(ap);