Changeset 99ea659c in mainline
- Timestamp:
- 2010-12-10T08:58:49Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ad79d80, cdc1aa1
- Parents:
- 2c5cefa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/usbinfo/main.c
r2c5cefa r99ea659c 44 44 #include "usbinfo.h" 45 45 46 #define DEFAULT_HOST_CONTROLLER_PATH "/virt/usbhc" 47 46 48 static void print_usage(char *app_name) 47 49 { 48 50 printf(NAME ": query USB devices for descriptors\n\n"); 49 51 printf("Usage: %s /path/to/hc usb-address\n where\n", app_name); 50 printf(" /path/to/hc Devman path to USB host controller\n"); 52 printf(" /path/to/hc Devman path to USB host controller " \ 53 "(use `-' for\n"); 54 printf(" default HC at `%s').\n", 55 DEFAULT_HOST_CONTROLLER_PATH); 51 56 printf(" usb-address USB address of device to be queried\n"); 52 57 printf("\n"); … … 68 73 } 69 74 70 int main(int argc, char * 75 int main(int argc, char *argv[]) 71 76 { 72 77 if (argc != 3) { … … 81 86 * Connect to given host controller driver. 82 87 */ 88 if (str_cmp(hc_path, "-") == 0) { 89 hc_path = (char *) DEFAULT_HOST_CONTROLLER_PATH; 90 } 83 91 int hc_phone = connect_to_hc(hc_path); 84 92 if (hc_phone < 0) {
Note:
See TracChangeset
for help on using the changeset viewer.