Changeset 41ebc36 in mainline for uspace/app/tmon/test.c
- Timestamp:
- 2017-12-18T12:32:07Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7faf0f0
- Parents:
- fc338e0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tmon/test.c
rfc338e0 r41ebc36 40 40 #include <errno.h> 41 41 #include <str_error.h> 42 #include <usb/diag/diag.h> 43 #include <usb/diag/iface.h> 42 #include <usbdiag_iface.h> 44 43 #include "commands.h" 45 44 … … 53 52 int rc; 54 53 55 if ((rc = loc_category_get_id(USB _DIAG_CATEGORY, &diag_cat, 0))) {56 printf(NAME ": Error resolving category '%s'", USB _DIAG_CATEGORY);54 if ((rc = loc_category_get_id(USBDIAG_CATEGORY, &diag_cat, 0))) { 55 printf(NAME ": Error resolving category '%s'", USBDIAG_CATEGORY); 57 56 return rc; 58 57 } … … 116 115 117 116 static int bulk_worker(devman_handle_t fun) { 118 async_sess_t *sess = usb _diag_connect(fun);117 async_sess_t *sess = usbdiag_connect(fun); 119 118 async_exch_t *exch = async_exchange_begin(sess); 120 119 121 120 // TODO: do some testing 122 121 int y; 123 int rc = usb _diag_test(exch, 4200, &y);122 int rc = usbdiag_test(exch, 4200, &y); 124 123 125 124 if (rc) { … … 130 129 131 130 async_exchange_end(exch); 132 usb _diag_disconnect(sess);131 usbdiag_disconnect(sess); 133 132 return 0; 134 133 }
Note:
See TracChangeset
for help on using the changeset viewer.