Changeset 9af1c61 in mainline for uspace/app/df/df.c


Ignore:
Timestamp:
2017-12-05T14:52:22Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
addbce4
Parents:
82d515e9
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-05 14:50:38)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-05 14:52:22)
Message:

Print errno values as string, rather than just numbers.

File:
1 edited

Legend:

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

    r82d515e9 r9af1c61  
    4040#include <stdlib.h>
    4141#include <stdint.h>
     42#include <str_error.h>
    4243#include <getopt.h>
    4344#include <errno.h>
     
    118119                                return 1;
    119120                } else {
    120                         fprintf(stderr, "Cannot get information for '%s' (%d).\n",
    121                             mtab_ent->mp, errno);
     121                        fprintf(stderr, "Cannot get information for '%s' (%s).\n",
     122                            mtab_ent->mp, str_error(errno));
    122123                }
    123124        }
Note: See TracChangeset for help on using the changeset viewer.