mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
cpus.c: Drop unnecessary set_cpu_log()
The set_cpu_log() function in cpus.c is a fairly simple wrapper which is only called from one location. Just inline the code into vl.c, since there is no need to indirect it via cpus.c and the handling of the error case is more appropriate to vl.c. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
24537a0191
commit
b946bffab5
3 changed files with 8 additions and 14 deletions
9
vl.c
9
vl.c
|
@ -3864,10 +3864,17 @@ int main(int argc, char **argv, char **envp)
|
|||
* location or level of logging.
|
||||
*/
|
||||
if (log_mask) {
|
||||
int mask;
|
||||
if (log_file) {
|
||||
qemu_set_log_filename(log_file);
|
||||
}
|
||||
set_cpu_log(log_mask);
|
||||
|
||||
mask = qemu_str_to_log_mask(log_mask);
|
||||
if (!mask) {
|
||||
qemu_print_log_usage(stdout);
|
||||
exit(1);
|
||||
}
|
||||
qemu_set_log(mask);
|
||||
}
|
||||
|
||||
if (!trace_backend_init(trace_events, trace_file)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue