Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/mount/mount.c

    r86cf96d r680708d  
    3030#include <stdio.h>
    3131#include <stdlib.h>
     32#include <str_error.h>
    3233#include <vfs/vfs.h>
    3334#include <adt/list.h>
     
    117118        argc = cli_count_args(argv);
    118119
    119         for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) {
     120        for (c = 0, optind = 0, opt_ind = 0; c != -1;) {
    120121                c = getopt_long(argc, argv, "i:h", long_options, &opt_ind);
    121122                switch (c) {
     
    152153        rc = mount(t_argv[1], t_argv[2], dev, mopts, 0, instance);
    153154        if (rc != EOK) {
    154                 printf("Unable to mount %s filesystem to %s on %s (rc=%d)\n",
    155                     t_argv[1], t_argv[2], t_argv[3], rc);
     155                printf("Unable to mount %s filesystem to %s on %s (rc=%s)\n",
     156                    t_argv[1], t_argv[2], t_argv[3], str_error(rc));
    156157                return CMD_FAILURE;
    157158        }
Note: See TracChangeset for help on using the changeset viewer.