Changeset 3100ebe in mainline for uspace/app/usbinfo/main.c


Ignore:
Timestamp:
2011-03-16T10:14:57Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
81ca204
Parents:
2180979
Message:

Preparation for more modular usbinfo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/usbinfo/main.c

    r2180979 r3100ebe  
    164164                }
    165165
    166                 printf("Device `%s':\n------------\n", devpath);
    167                 dump_device(hc_handle, dev_addr);
     166                usbinfo_device_t *dev = prepare_device(hc_handle, dev_addr);
     167                if (dev == NULL) {
     168                        continue;
     169                }
     170
     171                /* Run actions the user specified. */
     172                /* TODO */
     173
     174
     175                printf("%s\n", devpath);
     176                dump_short_device_identification(dev);
     177                dump_device_match_ids(dev);
     178
     179                /* Destroy the control pipe (close the session etc.). */
     180                destroy_device(dev);
    168181        }
    169182
Note: See TracChangeset for help on using the changeset viewer.