Changeset a35b458 in mainline for uspace/drv/test/test3/test3.c
- Timestamp:
- 2018-03-02T20:10:49Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/test/test3/test3.c
r3061bc1 ra35b458 70 70 errno_t rc; 71 71 char *fun_name = NULL; 72 72 73 73 if (asprintf(&fun_name, "%s%zu", base_name, index) < 0) { 74 74 ddf_msg(LVL_ERROR, "Failed to format string: No memory"); … … 76 76 goto leave; 77 77 } 78 78 79 79 fun = ddf_fun_create(parent, fun_exposed, fun_name); 80 80 if (fun == NULL) { … … 90 90 goto leave; 91 91 } 92 92 93 93 ddf_fun_add_to_category(fun, class_name); 94 94 … … 97 97 leave: 98 98 free(fun_name); 99 99 100 100 if ((rc != EOK) && (fun != NULL)) { 101 101 ddf_fun_destroy(fun); 102 102 } 103 103 104 104 *pfun = fun; 105 105 return rc; … … 149 149 } 150 150 } 151 151 152 152 return rc; 153 153 }
Note:
See TracChangeset
for help on using the changeset viewer.