Changeset cd0684d in mainline for uspace/drv/isa/isa.c
- Timestamp:
- 2011-02-14T22:14:52Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 659ca07
- Parents:
- 97a62fe
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/isa/isa.c
r97a62fe rcd0684d 44 44 #include <stdlib.h> 45 45 #include <str.h> 46 #include <str_error.h> 46 47 #include <ctype.h> 47 48 #include <macros.h> … … 324 325 int score = 0; 325 326 char *end = NULL; 327 int rc; 326 328 327 329 val = skip_spaces(val); … … 334 336 } 335 337 336 match_id_t *match_id = create_match_id();337 if (match_id == NULL) {338 printf(NAME " : failed to allocate match id for function %s.\n",339 fun->fnode->name);340 return;341 }342 343 338 val = skip_spaces(end); 344 339 get_match_id(&id, val); … … 346 341 printf(NAME " : error - could not read match id for " 347 342 "function %s.\n", fun->fnode->name); 348 delete_match_id(match_id);349 343 return; 350 344 } 351 352 match_id->id = id;353 match_id->score = score;354 345 355 346 printf(NAME ": adding match id '%s' with score %d to function %s\n", id, 356 347 score, fun->fnode->name); 357 add_match_id(&fun->fnode->match_ids, match_id); 348 349 rc = ddf_fun_add_match_id(fun->fnode, id, score); 350 if (rc != EOK) 351 printf(NAME ": error adding match ID: %s\n", str_error(rc)); 358 352 } 359 353
Note:
See TracChangeset
for help on using the changeset viewer.