diff options
author | Jeff Brown <jeffbrown@android.com> | 2011-08-15 19:39:02 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-08-16 05:37:29 -0400 |
commit | 54d3339ac127bbf1efd3ae5a1f520a6c302c952a (patch) | |
tree | a4e093d0d2807cbe3c84674d40f209b5e21fc02e | |
parent | ad395ccadb6b2f0a4f9e004c9e6f2a8c22091ed0 (diff) |
HID: hid-debug: Show application usage for each collection.
Signed-off-by: jeffbrown@android.com
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@logitech.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | drivers/hid/hid-debug.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c index bae48745bb42..9a243ca96e6d 100644 --- a/drivers/hid/hid-debug.c +++ b/drivers/hid/hid-debug.c | |||
@@ -450,6 +450,11 @@ void hid_dump_field(struct hid_field *field, int n, struct seq_file *f) { | |||
450 | seq_printf(f, "Logical("); | 450 | seq_printf(f, "Logical("); |
451 | hid_resolv_usage(field->logical, f); seq_printf(f, ")\n"); | 451 | hid_resolv_usage(field->logical, f); seq_printf(f, ")\n"); |
452 | } | 452 | } |
453 | if (field->application) { | ||
454 | tab(n, f); | ||
455 | seq_printf(f, "Application("); | ||
456 | hid_resolv_usage(field->application, f); seq_printf(f, ")\n"); | ||
457 | } | ||
453 | tab(n, f); seq_printf(f, "Usage(%d)\n", field->maxusage); | 458 | tab(n, f); seq_printf(f, "Usage(%d)\n", field->maxusage); |
454 | for (j = 0; j < field->maxusage; j++) { | 459 | for (j = 0; j < field->maxusage; j++) { |
455 | tab(n+2, f); hid_resolv_usage(field->usage[j].hid, f); seq_printf(f, "\n"); | 460 | tab(n+2, f); hid_resolv_usage(field->usage[j].hid, f); seq_printf(f, "\n"); |