trace_buffer: fix check for empty buffer

Issue #4805
This commit is contained in:
Christian Helmuth 2023-04-04 14:14:36 +02:00
parent 684388e737
commit 4b54520579

View File

@ -82,7 +82,7 @@ class Trace_buffer
void * address() const { return &_buffer; }
bool empty() const { return _curr.head(); }
bool empty() const { return !_buffer.initialized() || _curr.head(); }
};
#endif /* _TRACE__TRACE_BUFFER_H_ */