[PATCH] HID: debug: fix the ring buffer implementation