Johannes Schlatow e35837e14b trace_buffer: fix wrap condition
When committing a new entry, the buffer wrapped if the last entry fit
perfectly into the buffer. Otherwise, the length field of the next entry
was set to 0 to mark the new head. Yet, if there was still some padding but not
enough to hold the length field of another entry, we ended up with a
headless buffer.

genodelabs/genode#4430
2022-02-28 11:45:18 +01:00
..
2022-02-28 11:45:18 +01:00
2021-12-17 15:06:38 +01:00
2021-12-17 15:06:38 +01:00
2020-05-18 10:16:12 +02:00
2020-04-17 12:40:12 +02:00
2021-11-29 15:11:52 +01:00
2020-04-17 12:40:12 +02:00
2021-12-17 15:04:44 +01:00
2021-12-17 15:04:44 +01:00
2020-07-30 08:49:23 +02:00
2022-01-19 12:35:49 +01:00
2020-07-30 08:49:23 +02:00
2020-04-17 12:40:12 +02:00
2021-12-17 15:04:44 +01:00
2020-04-17 12:40:12 +02:00
2021-10-14 11:02:12 +02:00
2021-11-29 15:11:52 +01:00
2021-12-17 15:04:44 +01:00
2020-04-17 12:40:12 +02:00
2019-02-26 14:44:15 +01:00
2020-04-17 12:40:12 +02:00