mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
trace: remove argument from trace_init_file
It is not needed, all the callers are just saving what was retrieved from -trace and trace_init_file can retrieve it on its own. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 20201102115841.4017692-1-pbonzini@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
c6f28ed507
commit
92eecfff32
10 changed files with 24 additions and 49 deletions
|
|
@ -536,7 +536,6 @@ int main(int argc, char **argv)
|
|||
Error *local_error = NULL;
|
||||
QDict *opts = NULL;
|
||||
const char *format = NULL;
|
||||
char *trace_file = NULL;
|
||||
bool force_share = false;
|
||||
|
||||
#ifdef CONFIG_POSIX
|
||||
|
|
@ -601,8 +600,7 @@ int main(int argc, char **argv)
|
|||
}
|
||||
break;
|
||||
case 'T':
|
||||
g_free(trace_file);
|
||||
trace_file = trace_opt_parse(optarg);
|
||||
trace_opt_parse(optarg);
|
||||
break;
|
||||
case 'V':
|
||||
printf("%s version " QEMU_FULL_VERSION "\n"
|
||||
|
|
@ -653,7 +651,7 @@ int main(int argc, char **argv)
|
|||
if (!trace_init_backends()) {
|
||||
exit(1);
|
||||
}
|
||||
trace_init_file(trace_file);
|
||||
trace_init_file();
|
||||
qemu_set_log(LOG_TRACE);
|
||||
|
||||
/* initialize commands */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue