modify debug uart with ringbuf