Changeset 5eb5dcf in mainline for uspace/srv/bd/ata_bd/ata_bd.c
- Timestamp:
- 2010-01-06T20:56:04Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fccc236
- Parents:
- 002252a (diff), eca2435 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/ata_bd/ata_bd.c
r002252a r5eb5dcf 55 55 #include <async.h> 56 56 #include <as.h> 57 #include <fibril_sync .h>57 #include <fibril_synch.h> 58 58 #include <string.h> 59 59 #include <devmap.h> … … 66 66 #include "ata_bd.h" 67 67 68 #define NAME "ata_bd" 68 #define NAME "ata_bd" 69 #define NAMESPACE "bd" 69 70 70 71 /** Physical block size. Should be always 512. */ … … 135 136 if (disk[i].present == false) 136 137 continue; 137 138 snprintf(name, 16, " disk%d", i);138 139 snprintf(name, 16, "%s/disk%d", NAMESPACE, i); 139 140 rc = devmap_device_register(name, &disk[i].dev_handle); 140 141 if (rc != EOK) { 141 142 devmap_hangup_phone(DEVMAP_DRIVER); 142 printf(NAME ": Unable to register device %s.\n", 143 name); 143 printf(NAME ": Unable to register device %s.\n", name); 144 144 return rc; 145 145 }
Note:
See TracChangeset
for help on using the changeset viewer.