mirror of
https://github.com/ARM-software/devlib.git
synced 2025-09-01 17:41:54 +01:00
collector/serial_trace: Ensure log is opened in binary mode
This commit is contained in:
@@ -54,7 +54,7 @@ class SerialTraceCollector(CollectorBase):
|
||||
if self.output_path is None:
|
||||
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"
|
||||
self._outfile_fh.write(start_marker.encode('utf-8'))
|
||||
|
||||
|
Reference in New Issue
Block a user