HID: hid-debug: Show application usage for each collection.
authorJeff Brown <jeffbrown@android.com>
Mon, 15 Aug 2011 23:39:02 +0000 (16:39 -0700)
committerJiri Kosina <jkosina@suse.cz>
Tue, 16 Aug 2011 09:37:29 +0000 (11:37 +0200)
Signed-off-by: jeffbrown@android.com
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@logitech.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-debug.c

index bae48745bb4281da2d77ee429882fa52093e60e2..9a243ca96e6db8fbb754b34e16e8c508ee289eab 100644 (file)
@@ -450,6 +450,11 @@ void hid_dump_field(struct hid_field *field, int n, struct seq_file *f) {
                seq_printf(f, "Logical(");
                hid_resolv_usage(field->logical, f); seq_printf(f, ")\n");
        }
+       if (field->application) {
+               tab(n, f);
+               seq_printf(f, "Application(");
+               hid_resolv_usage(field->application, f); seq_printf(f, ")\n");
+       }
        tab(n, f); seq_printf(f, "Usage(%d)\n", field->maxusage);
        for (j = 0; j < field->maxusage; j++) {
                tab(n+2, f); hid_resolv_usage(field->usage[j].hid, f); seq_printf(f, "\n");