Changeset 8e16454 in mainline for uspace/app/tmon/tf.c
- Timestamp:
- 2017-12-27T16:46:27Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f4b83cc
- Parents:
- 59958992
- git-author:
- Petr Manek <petr.manek@…> (2017-12-27 16:43:34)
- git-committer:
- Petr Manek <petr.manek@…> (2017-12-27 16:46:27)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tmon/tf.c
r59958992 r8e16454 45 45 #define MAX_PATH_LENGTH 1024 46 46 47 int tmon_test_main(int argc, char *argv[], const tmon_test_ops_t *ops) { 47 /** Common command handler for all test commands. 48 * @param[in] argc Number of arguments. 49 * @param[in] argv Argument values. Must point to exactly `argc` strings. 50 * 51 * @return Exit code 52 */ 53 int tmon_test_main(int argc, char *argv[], const tmon_test_ops_t *ops) 54 { 55 // Resolve device function. 48 56 devman_handle_t fun = -1; 49 57 … … 67 75 printf("Using device: %s\n", path); 68 76 77 // Read test parameters from options. 69 78 tmon_test_params_t *params = NULL; 70 79 if ((rc = ops->read_params(argc, argv, ¶ms))) { … … 73 82 } 74 83 84 // Run the test body. 75 85 async_sess_t *sess = usbdiag_connect(fun); 76 86 if (!sess) {
Note:
See TracChangeset
for help on using the changeset viewer.