diff options
author | Steven Rostedt <srostedt@redhat.com> | 2011-02-24 19:00:33 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2011-02-24 19:00:33 -0500 |
commit | 5d449caec638cafe4627b22d3e2ad7c57e1d5c89 (patch) | |
tree | 5f588ae09d3f1f4a203b08a74a21d675895fc078 | |
parent | 5ce919cbbb30c8d5a5b3b924cb889dfc729fdbda (diff) |
trace-cmd: Fix writing options data to file
The address of the options data is written to the file instead of
the actual data.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | trace-output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trace-output.c b/trace-output.c index 26b0197..f43aa65 100644 --- a/trace-output.c +++ b/trace-output.c | |||
@@ -863,7 +863,7 @@ static int add_options(struct tracecmd_output *handle) | |||
863 | if (do_write_check(handle, &handle->options[i].size, 4)) | 863 | if (do_write_check(handle, &handle->options[i].size, 4)) |
864 | return -1; | 864 | return -1; |
865 | 865 | ||
866 | if (do_write_check(handle, &handle->options[i].data, | 866 | if (do_write_check(handle, handle->options[i].data, |
867 | handle->options[i].size)) | 867 | handle->options[i].size)) |
868 | return -1; | 868 | return -1; |
869 | } | 869 | } |