mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 02:58:29 +00: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:
committed by
Stefan Hajnoczi
parent
c6f28ed507
commit
92eecfff32
@@ -884,7 +884,6 @@ int main(int argc, char **argv)
|
||||
int quiet = 0;
|
||||
int ch;
|
||||
Error *local_err = NULL;
|
||||
char *trace_file = NULL;
|
||||
bool daemonize = false;
|
||||
bool pidfile_specified = false;
|
||||
bool socket_path_specified = false;
|
||||
@@ -968,8 +967,7 @@ int main(int argc, char **argv)
|
||||
++loglevel;
|
||||
break;
|
||||
case 'T':
|
||||
g_free(trace_file);
|
||||
trace_file = trace_opt_parse(optarg);
|
||||
trace_opt_parse(optarg);
|
||||
break;
|
||||
case 'V':
|
||||
version(argv[0]);
|
||||
@@ -992,7 +990,7 @@ int main(int argc, char **argv)
|
||||
if (!trace_init_backends()) {
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
trace_init_file(trace_file);
|
||||
trace_init_file();
|
||||
qemu_set_log(LOG_TRACE);
|
||||
|
||||
#ifdef CONFIG_MPATH
|
||||
|
||||
Reference in New Issue
Block a user