mirror of
https://github.com/linuxboot/heads.git
synced 2025-04-07 19:34:26 +00:00
Improve speed by pre-filtering only for lines containing any tokens of interest to flashrom_progress_tokenize(). Improve reliability by avoiding dropping tokens that cross a stream buffer boundary. Occasionally, a token could be missed if it crosses a stream buffer boundary, due to read timing out too quickly before the next buffer is flushed. If this was a state-changing token, flashrom_progress() would hang forever. Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>