mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
collector/serial_trace: Ensure log is opened in binary mode
This commit is contained in:
parent
1ad2e895b3
commit
3cb2793e51
@ -54,7 +54,7 @@ class SerialTraceCollector(CollectorBase):
|
|||||||
if self.output_path is None:
|
if self.output_path is None:
|
||||||
raise RuntimeError("Output path was not set.")
|
raise RuntimeError("Output path was not set.")
|
||||||
|
|
||||||
self._outfile_fh = open(self.output_path, 'w')
|
self._outfile_fh = open(self.output_path, 'wb')
|
||||||
start_marker = "-------- Starting serial logging --------\n"
|
start_marker = "-------- Starting serial logging --------\n"
|
||||||
self._outfile_fh.write(start_marker.encode('utf-8'))
|
self._outfile_fh.write(start_marker.encode('utf-8'))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user