Changeset 3100ebe in mainline for uspace/app/usbinfo/info.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/info.c

    r2180979 r3100ebe  
    4242#include "usbinfo.h"
    4343
     44void dump_short_device_identification(usbinfo_device_t *dev)
     45{
     46        printf("%sDevice 0x%04x by vendor 0x%04x\n", get_indent(0),
     47            (int) dev->device_descriptor.product_id,
     48            (int) dev->device_descriptor.vendor_id);
     49}
     50
     51void dump_device_match_ids(usbinfo_device_t *dev)
     52{
     53        match_id_list_t matches;
     54        init_match_ids(&matches);
     55        usb_device_create_match_ids_from_device_descriptor(
     56            &dev->device_descriptor, &matches);
     57        dump_match_ids(&matches, get_indent(0));
     58}
     59
    4460int dump_device(devman_handle_t hc_handle, usb_address_t address)
    4561{
     
    92108                goto leave;
    93109        }
    94         dump_match_ids(&match_id_list);
     110        dump_match_ids(&match_id_list, get_indent(0));
    95111
    96112        /*
Note: See TracChangeset for help on using the changeset viewer.