diff options
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-09-05 18:31:21 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-09-21 11:30:10 +0100 |
commit | 6c2a40742602c3cbe6a3905229dd539d7c311550 (patch) | |
tree | af0f2f640b92cdca33cce15d5418bd575ab440bc /trace | |
parent | 85aff1586fe4a0dfc6eda2dfd6e79e78063f4fbb (diff) | |
download | qemu-6c2a40742602c3cbe6a3905229dd539d7c311550.zip qemu-6c2a40742602c3cbe6a3905229dd539d7c311550.tar.gz qemu-6c2a40742602c3cbe6a3905229dd539d7c311550.tar.bz2 |
trace: use binary file open mode in simpletrace
For Windows portability the simple trace backend must use the 'b' file
open mode. This prevents the stdio library from mangling 0x0a/0x0d
newline characters.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'trace')
-rw-r--r-- | trace/simple.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trace/simple.c b/trace/simple.c index 885764a..b639dda 100644 --- a/trace/simple.c +++ b/trace/simple.c @@ -234,7 +234,7 @@ void st_set_trace_file_enabled(bool enable) .x1 = HEADER_VERSION, }; - trace_fp = fopen(trace_file_name, "w"); + trace_fp = fopen(trace_file_name, "wb"); if (!trace_fp) { return; } |