Changeset 132ab5d1 in mainline for uspace/app/sysinst/sysinst.c
- Timestamp:
- 2018-01-30T03:20:45Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5a6cc679
- Parents:
- 8bfb163 (diff), 6a5d05b (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
-
uspace/app/sysinst/sysinst.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sysinst/sysinst.c
r8bfb163 r132ab5d1 44 44 #include <stdio.h> 45 45 #include <stdlib.h> 46 #include <str_error.h> 46 47 #include <task.h> 47 48 #include <vfs/vfs.h> … … 82 83 * @param pdev Place to store partition device name 83 84 * 84 * @return EOK on success or error code85 * @return EOK on success or an error code 85 86 */ 86 87 static int sysinst_label_dev(const char *dev, char **pdev) … … 117 118 rc = fdisk_label_create(fdev, lt_mbr); 118 119 if (rc != EOK) { 119 printf("Error creating label (%d).\n", rc);120 printf("Error creating label: %s.\n", str_error(rc)); 120 121 return rc; 121 122 } … … 125 126 rc = fdisk_part_get_max_avail(fdev, spc_pri, &cap); 126 127 if (rc != EOK) { 127 printf("Error getting available capacity (%d).\n", rc);128 printf("Error getting available capacity: %s.\n", str_error(rc)); 128 129 return rc; 129 130 } … … 141 142 142 143 /* XXX libfdisk should give us the service name */ 143 rc = asprintf(pdev, "%sp1", dev); 144 if (rc < 0) 144 if (asprintf(pdev, "%sp1", dev) < 0) 145 145 return ENOMEM; 146 146 … … 152 152 * 153 153 * @param dev Partition device 154 * @return EOK on success or error code154 * @return EOK on success or an 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 error code193 * @return EOK on success or an 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 error code260 * @return EOK on success or an 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 error code355 * @return EOK on success or an error code 356 356 */ 357 357 static int sysinst_install(const char *dev)
Note:
See TracChangeset
for help on using the changeset viewer.
