Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 680708d in mainline


Ignore:
Timestamp:
2014-02-01T21:45:56Z (8 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
1412b7ee
Parents:
329c0ee
Message:

bdsh, mount: Use error name instead of error code

File:
1 edited

Legend:

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

    r329c0ee r680708d  
    3030#include <stdio.h>
    3131#include <stdlib.h>
     32#include <str_error.h>
    3233#include <vfs/vfs.h>
    3334#include <adt/list.h>
     
    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.