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