Changeset b207803 in mainline
- Timestamp:
- 2011-01-10T16:51:13Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5ccb15c
- Parents:
- 1ffa73b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/recognise.c
r1ffa73b rb207803 346 346 usb_address_t address, devman_handle_t *child_handle) 347 347 { 348 static size_t device_name_index = 0; 349 348 350 device_t *child = NULL; 349 351 char *child_name = NULL; … … 357 359 358 360 /* 359 * TODO: some better child naming 360 */ 361 rc = asprintf(&child_name, "usb%p", child); 361 * TODO: Once the device driver framework support persistent 362 * naming etc., something more descriptive could be created. 363 */ 364 rc = asprintf(&child_name, "usbdev%02zu", device_name_index); 362 365 if (rc < 0) { 363 366 goto failure; … … 381 384 } 382 385 386 device_name_index++; 387 383 388 return EOK; 384 389
Note:
See TracChangeset
for help on using the changeset viewer.