Skip to content
Commit ea288283 authored by Dong Wang's avatar Dong Wang Committed by Anas Nashif
Browse files

logging: log_output: Prevent redundant flush with zero-length data



There's such a case captured. When log immediate mode is enabled, each log
message is output per character. However, "log_output_flush()" function is
still called with zero data length at the end of "log_output_process()".
Better to make "buffer_write()" returns immediatley if buffer data
length is zero.

Signed-off-by: default avatarDong Wang <dong.d.wang@intel.com>
parent 027e0095
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment