mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06: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
|
@ -581,7 +581,6 @@ int main(int argc, char **argv)
|
|||
const char *tlscredsid = NULL;
|
||||
bool imageOpts = false;
|
||||
bool writethrough = true;
|
||||
char *trace_file = NULL;
|
||||
bool fork_process = false;
|
||||
bool list = false;
|
||||
int old_stderr = -1;
|
||||
|
@ -768,8 +767,7 @@ int main(int argc, char **argv)
|
|||
imageOpts = true;
|
||||
break;
|
||||
case 'T':
|
||||
g_free(trace_file);
|
||||
trace_file = trace_opt_parse(optarg);
|
||||
trace_opt_parse(optarg);
|
||||
break;
|
||||
case QEMU_NBD_OPT_TLSAUTHZ:
|
||||
tlsauthz = optarg;
|
||||
|
@ -816,7 +814,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);
|
||||
|
||||
socket_activation = check_socket_activation();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue