Changes in uspace/app/sysinst/sysinst.c [cde999a:6c4eedf] in mainline
- File:
-
- 1 edited
-
uspace/app/sysinst/sysinst.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sysinst/sysinst.c
rcde999a r6c4eedf 44 44 #include <stdio.h> 45 45 #include <stdlib.h> 46 #include <str_error.h>47 46 #include <task.h> 48 47 #include <vfs/vfs.h> … … 83 82 * @param pdev Place to store partition device name 84 83 * 85 * @return EOK on success or anerror code84 * @return EOK on success or error code 86 85 */ 87 86 static int sysinst_label_dev(const char *dev, char **pdev) … … 118 117 rc = fdisk_label_create(fdev, lt_mbr); 119 118 if (rc != EOK) { 120 printf("Error creating label : %s.\n", str_error(rc));119 printf("Error creating label (%d).\n", rc); 121 120 return rc; 122 121 } … … 126 125 rc = fdisk_part_get_max_avail(fdev, spc_pri, &cap); 127 126 if (rc != EOK) { 128 printf("Error getting available capacity : %s.\n", str_error(rc));127 printf("Error getting available capacity (%d).\n", rc); 129 128 return rc; 130 129 } … … 142 141 143 142 /* XXX libfdisk should give us the service name */ 144 if (asprintf(pdev, "%sp1", dev) < 0) 143 rc = asprintf(pdev, "%sp1", dev); 144 if (rc < 0) 145 145 return ENOMEM; 146 146 … … 152 152 * 153 153 * @param dev Partition device 154 * @return EOK on success or anerror code154 * @return EOK on success or error code 155 155 */ 156 156 static int sysinst_fs_mount(const char *dev) … … 191 191 /** Copy boot files. 192 192 * 193 * @return EOK on success or anerror code193 * @return EOK on success or error code 194 194 */ 195 195 static int sysinst_copy_boot_files(void) … … 258 258 * 259 259 * @param devp Disk device 260 * @return EOK on success or anerror code260 * @return EOK on success or error code 261 261 */ 262 262 static int sysinst_copy_boot_blocks(const char *devp) … … 353 353 * 354 354 * @param dev Device to install to. 355 * @return EOK on success or anerror code355 * @return EOK on success or error code 356 356 */ 357 357 static int sysinst_install(const char *dev)
Note:
See TracChangeset
for help on using the changeset viewer.
