Changeset 822d22a in mainline for uspace/srv/part/mbr_part/mbr_part.c
- Timestamp:
- 2009-09-01T19:09:48Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 440b0ce
- Parents:
- 00b1d20e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/part/mbr_part/mbr_part.c
r00b1d20e r822d22a 43 43 44 44 #include <stdio.h> 45 #include <stdlib.h> 45 46 #include <unistd.h> 46 47 #include <ipc/ipc.h> … … 132 133 { 133 134 printf(NAME ": PC MBR partition driver\n"); 134 printf(NAME ": Size of br_block_t = %d\n", sizeof(br_block_t));135 135 136 136 if (argc != 2) { … … 202 202 203 203 asprintf(&name, "%sp%d", dev_name, i); 204 if (name == NULL) 205 return ENOMEM; 206 204 207 rc = devmap_device_register(name, &dev); 205 208 if (rc != EOK) { … … 215 218 216 219 primary[i].dev = dev; 220 free(name); 217 221 } 218 222 … … 252 256 primary[i].dev = 0; 253 257 } 258 259 return EOK; 254 260 } 255 261
Note:
See TracChangeset
for help on using the changeset viewer.