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