ringbuffer: fix style