diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-11-02 06:58:41 -0500 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2020-11-11 13:08:09 +0000 |
commit | 92eecfff32763ee138f4cebc1a12c5b051ad5bb5 (patch) | |
tree | 3b74701f9b1b6301b6e0a972eb7cc6bba22ad823 /storage-daemon/qemu-storage-daemon.c | |
parent | c6f28ed5075df79fef39c500362a3f4089256c9c (diff) |
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>
Diffstat (limited to 'storage-daemon/qemu-storage-daemon.c')
-rw-r--r-- | storage-daemon/qemu-storage-daemon.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/storage-daemon/qemu-storage-daemon.c b/storage-daemon/qemu-storage-daemon.c index e419ba9f19..7c914b0dc1 100644 --- a/storage-daemon/qemu-storage-daemon.c +++ b/storage-daemon/qemu-storage-daemon.c @@ -180,12 +180,9 @@ static void process_options(int argc, char *argv[]) help(); exit(EXIT_SUCCESS); case 'T': - { - char *trace_file = trace_opt_parse(optarg); - trace_init_file(trace_file); - g_free(trace_file); - break; - } + trace_opt_parse(optarg); + trace_init_file(); + break; case 'V': printf("qemu-storage-daemon version " QEMU_FULL_VERSION "\n" QEMU_COPYRIGHT "\n"); |