mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-09 04:15:52 +00:00
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)
|
||||
{
|
||||
/* omit empty entries */
|
||||
if (len == 0)
|
||||
return;
|
||||
|
||||
_head_entry()->len = len;
|
||||
|
||||
/* advance head offset, wrap when reaching buffer boundary */
|
||||
|
Loading…
x
Reference in New Issue
Block a user