Changeset 132ab5d1 in mainline for uspace/app/sysinst/sysinst.c


Ignore:
Timestamp:
2018-01-30T03:20:45Z (8 years ago)
Author:
Jenda <jenda.jzqk73@…>
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.
Message:

Merge commit '6a5d05bd2551e64111bea4f9332dd7448c26ce84' into forwardport

Separate return value from error code in gen_irq_code*().

File:
1 edited

Legend:

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

    r8bfb163 r132ab5d1  
    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.