[PATCH 3.16 10/16] HID: debug: fix the ring buffer implementation