Changeset 1433ecda in mainline for uspace/srv/bd/sata_bd/sata_bd.c
- Timestamp:
- 2018-04-04T15:42:37Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/sata_bd/sata_bd.c
r47b2d7e3 r1433ecda 97 97 /* If device is SATA, add device to the disk array. */ 98 98 disk[disk_count].sess = ahci_get_sess(funh, &disk[disk_count].dev_name); 99 if (disk[disk_count].sess != NULL) {99 if (disk[disk_count].sess != NULL) { 100 100 101 101 ahci_get_sata_device_name(disk[disk_count].sess, … … 113 113 printf("Device %s - %s , blocks: %lu, block_size: %lu\n", 114 114 disk[disk_count].dev_name, disk[disk_count].sata_dev_name, 115 116 115 (long unsigned int) disk[disk_count].blocks, 116 (long unsigned int) disk[disk_count].block_size); 117 117 118 118 ++disk_count; … … 268 268 } 269 269 270 for (int i = 0; i < disk_count; i++) {270 for (int i = 0; i < disk_count; i++) { 271 271 char name[1024]; 272 272 snprintf(name, 1024, "%s/%s", NAMESPACE, disk[i].dev_name);
Note:
See TracChangeset
for help on using the changeset viewer.