base: only commit useful trace events
If the length of a trace event entry is zero it should be ommitted. Fixes #851.
This commit is contained in:
parent
ae87f50ce3
commit
82eb5e4323
|
@ -76,6 +76,10 @@ class Genode::Trace::Buffer
|
||||||
|
|
||||||
void commit(size_t len)
|
void commit(size_t len)
|
||||||
{
|
{
|
||||||
|
/* omit empty entries */
|
||||||
|
if (len == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
_head_entry()->len = len;
|
_head_entry()->len = len;
|
||||||
|
|
||||||
/* advance head offset, wrap when reaching buffer boundary */
|
/* advance head offset, wrap when reaching buffer boundary */
|
||||||
|
|
Loading…
Reference in New Issue