Changes in uspace/app/usbinfo/main.c [15f3c3f:e8f826b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/usbinfo/main.c
r15f3c3f re8f826b 42 42 #include <getopt.h> 43 43 #include <devman.h> 44 #include < loc.h>44 #include <devmap.h> 45 45 #include <usb/hc.h> 46 46 #include <usb/dev/pipes.h> … … 56 56 printf("Usage: %s [options] device [device [device [ ... ]]]\n", 57 57 app_name); 58 printf(_INDENT "The device can be specified in two ways.\n"); 59 printf(_INDENT " o Using its devman path, e.g. /hw/pci0/.../usb00_a1.\n"); 60 printf(_INDENT " o Or using BUS.ADDR numbers as printed by lsusb.\n"); 58 printf(_INDENT "The device is a devman path to the device.\n"); 61 59 62 60 _OPTION("-h --help", "Print this help and exit."); … … 67 65 _OPTION("-s --strings", "Try to print all string descriptors."); 68 66 _OPTION("-S --status", "Get status of the device."); 69 _OPTION("-r --hid-report", "Dump HID report descriptor.");70 _OPTION("-r --hid-report-usages", "Dump usages of HID report.");71 67 72 68 printf("\n"); … … 86 82 {"strings", no_argument, NULL, 's'}, 87 83 {"status", no_argument, NULL, 'S'}, 88 {"hid-report", no_argument, NULL, 'r'},89 {"hid-report-usages", no_argument, NULL, 'R'},90 84 {0, 0, NULL, 0} 91 85 }; 92 static const char *short_options = "himtTsS rR";86 static const char *short_options = "himtTsS"; 93 87 94 88 static usbinfo_action_t actions[] = { … … 121 115 .opt = 'S', 122 116 .action = dump_status, 123 .active = false124 },125 {126 .opt = 'r',127 .action = dump_hidreport_raw,128 .active = false129 },130 {131 .opt = 'R',132 .action = dump_hidreport_usages,133 117 .active = false 134 118 },
Note:
See TracChangeset
for help on using the changeset viewer.