Ignore:
File:
1 edited

Legend:

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

    r6c4eedf rcde999a  
    4444#include <stdio.h>
    4545#include <stdlib.h>
     46#include <str_error.h>
    4647#include <task.h>
    4748#include <vfs/vfs.h>
     
    8283 * @param pdev Place to store partition device name
    8384 *
    84  * @return EOK on success or error code
     85 * @return EOK on success or an error code
    8586 */
    8687static int sysinst_label_dev(const char *dev, char **pdev)
     
    117118        rc = fdisk_label_create(fdev, lt_mbr);
    118119        if (rc != EOK) {
    119                 printf("Error creating label (%d).\n", rc);
     120                printf("Error creating label: %s.\n", str_error(rc));
    120121                return rc;
    121122        }
     
    125126        rc = fdisk_part_get_max_avail(fdev, spc_pri, &cap);
    126127        if (rc != EOK) {
    127                 printf("Error getting available capacity (%d).\n", rc);
     128                printf("Error getting available capacity: %s.\n", str_error(rc));
    128129                return rc;
    129130        }
     
    141142
    142143        /* 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)
    145145                return ENOMEM;
    146146
     
    152152 *
    153153 * @param dev Partition device
    154  * @return EOK on success or error code
     154 * @return EOK on success or an error code
    155155 */
    156156static int sysinst_fs_mount(const char *dev)
     
    191191/** Copy boot files.
    192192 *
    193  * @return EOK on success or error code
     193 * @return EOK on success or an error code
    194194 */
    195195static int sysinst_copy_boot_files(void)
     
    258258 *
    259259 * @param devp Disk device
    260  * @return EOK on success or error code
     260 * @return EOK on success or an 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 error code
     355 * @return EOK on success or an error code
    356356 */
    357357static int sysinst_install(const char *dev)
Note: See TracChangeset for help on using the changeset viewer.