diff options
| author | Bruno Prémont <[email protected]> | 2010-03-15 18:00:27 +0000 |
|---|---|---|
| committer | Jiri Kosina <[email protected]> | 2010-03-16 12:36:01 +0000 |
| commit | e639ba481b76e445df354acd6e29d859a9b1657f (patch) | |
| tree | 5c10ca02dfff40acb1dc5c1915669a8c31e818a9 /drivers/mtd/lpddr/lpddr_cmds.c | |
| parent | HID: Add RGT Clutch Wheel clutch device id (diff) | |
| download | kernel-e639ba481b76e445df354acd6e29d859a9b1657f.tar.gz kernel-e639ba481b76e445df354acd6e29d859a9b1657f.zip | |
HID: avoid '\0' in hid debugfs events file
When dumping /sys/kernel/debug/hid/$device/events '\0' characters show up
(invisible if cat to console but shown by less or while looking at a dump
file). These are due to hid_debug_event() adding strlen()+1 bytes to the ring
buffer (e.g. including the trailing '\0'). Any roll-over causes a '\0' as well
as hid_debug_event() handles the ring buffers with HID_DEBUG_BUFSIZE-1 size
while hid_debug_events_read() handles it with full HID_DEBUG_BUFSIZE size.
Signed-off-by: Bruno Prémont <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions
