Commit d2dbcd3d authored by Marius Vlad's avatar Marius Vlad Committed by Daniel Stone

weston-log-flight-rec: Fix useless comparison when displaying the

contents of the flight recorder

The overlap variable is sufficient to determine from where to start
displaying the contents of the ring buffer. Also redundant to verify
if the position in the buffer went over the maximum size.
Signed-off-by: Marius Vlad's avatarMarius Vlad <>
Reported-by: Pekka Paalanen's avatarPekka Paalanen <>
parent 0ba0b8e8
......@@ -194,7 +194,7 @@ weston_log_subscriber_display_flight_rec_data(struct weston_ring_buffer *rb,
if (file)
file_d = file;
if (rb->append_pos <= rb->size && !rb->overlap) {
if (!rb->overlap) {
if (rb->append_pos)
fwrite(rb->buf, sizeof(char), rb->append_pos, file_d);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment