Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/sysinst/sysinst.c

    rcde999a r6c4eedf  
    4444#include <stdio.h>
    4545#include <stdlib.h>
    46 #include <str_error.h>
    4746#include <task.h>
    4847#include <vfs/vfs.h>
     
    8382 * @param pdev Place to store partition device name
    8483 *
    85  * @return EOK on success or an error code
     84 * @return EOK on success or error code
    8685 */
    8786static int sysinst_label_dev(const char *dev, char **pdev)
     
    118117        rc = fdisk_label_create(fdev, lt_mbr);
    119118        if (rc != EOK) {
    120                 printf("Error creating label: %s.\n", str_error(rc));
     119                printf("Error creating label (%d).\n", rc);
    121120                return rc;
    122121        }
     
    126125        rc = fdisk_part_get_max_avail(fdev, spc_pri, &cap);
    127126        if (rc != EOK) {
    128                 printf("Error getting available capacity: %s.\n", str_error(rc));
     127                printf("Error getting available capacity (%d).\n", rc);
    129128                return rc;
    130129        }
     
    142141
    143142        /* 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)
    145145                return ENOMEM;
    146146
     
    152152 *
    153153 * @param dev Partition device
    154  * @return EOK on success or an error code
     154 * @return EOK on success or error code
    155155 */
    156156static int sysinst_fs_mount(const char *dev)
     
    191191/** Copy boot files.
    192192 *
    193  * @return EOK on success or an error code
     193 * @return EOK on success or error code
    194194 */
    195195static int sysinst_copy_boot_files(void)
     
    258258 *
    259259 * @param devp Disk device
    260  * @return EOK on success or an error code
     260 * @return EOK on success or error code
    261261 */
    262262static int sysinst_copy_boot_blocks(const char *devp)
     
    353353 *
    354354 * @param dev Device to install to.
    355  * @return EOK on success or an error code
     355 * @return EOK on success or error code
    356356 */
    357357static int sysinst_install(const char *dev)
Note: See TracChangeset for help on using the changeset viewer.