Update easylogger/src/elog_buf.c

Co-authored-by: 朱天龙 (Armink) <armink.ztl@gmail.com>
pull/81/head
book诗意 5 years ago committed by GitHub
parent f5918ab647
commit 6fecf3d6e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -82,7 +82,7 @@ void elog_buf_output(const char *log, size_t size) {
* flush all buffered logs to output device * flush all buffered logs to output device
*/ */
void elog_flush(void) { void elog_flush(void) {
if(!buf_write_size) if (buf_write_size == 0)
return; return;
/* lock output */ /* lock output */
elog_output_lock(); elog_output_lock();

Loading…
Cancel
Save