Changeset c1694b6b in mainline for uspace/srv/fs


Ignore:
Timestamp:
2017-12-08T21:03:35Z (8 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:
f77c1c9
Parents:
9eb1ff5
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-07 18:20:13)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-08 21:03:35)
Message:

Add str_error() in numerous places.

Location:
uspace/srv/fs
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/cdfs/cdfs.c

    r9eb1ff5 rc1694b6b  
    4141#include <ns.h>
    4242#include <errno.h>
     43#include <str_error.h>
    4344#include <stdio.h>
    4445#include <libfs.h>
     
    8384            &cdfs_libfs_ops);
    8485        if (rc != EOK) {
    85                 printf("%s: Failed to register file system (%d)\n", NAME, rc);
     86                printf("%s: Failed to register file system: %s\n", NAME, str_error(rc));
    8687                return rc;
    8788        }
  • uspace/srv/fs/exfat/exfat.c

    r9eb1ff5 rc1694b6b  
    4343#include <async.h>
    4444#include <errno.h>
     45#include <str_error.h>
    4546#include <task.h>
    4647#include <stdio.h>
     
    9596
    9697err:
    97         printf(NAME ": Failed to register file system (%d)\n", rc);
     98        printf(NAME ": Failed to register file system: %s\n", str_error(rc));
    9899        return rc;
    99100}
  • uspace/srv/fs/fat/fat.c

    r9eb1ff5 rc1694b6b  
    4343#include <async.h>
    4444#include <errno.h>
     45#include <str_error.h>
    4546#include <task.h>
    4647#include <stdio.h>
     
    9596       
    9697err:
    97         printf(NAME ": Failed to register file system (%d)\n", rc);
     98        printf(NAME ": Failed to register file system: %s\n", str_error(rc));
    9899        return rc;
    99100}
  • uspace/srv/fs/locfs/locfs.c

    r9eb1ff5 rc1694b6b  
    4444#include <async.h>
    4545#include <errno.h>
     46#include <str_error.h>
    4647#include <task.h>
    4748#include <libfs.h>
     
    8788            &locfs_libfs_ops);
    8889        if (rc != EOK) {
    89                 printf("%s: Failed to register file system (%d)\n", NAME, rc);
     90                printf("%s: Failed to register file system: %s\n", NAME, str_error(rc));
    9091                return rc;
    9192        }
  • uspace/srv/fs/mfs/mfs.c

    r9eb1ff5 rc1694b6b  
    4444#include <async.h>
    4545#include <errno.h>
     46#include <str_error.h>
    4647#include <task.h>
    4748#include <stdio.h>
     
    9798
    9899err:
    99         printf(NAME ": Failed to register file system (%d)\n", rc);
     100        printf(NAME ": Failed to register file system: %s\n", str_error(rc));
    100101        return rc;
    101102}
  • uspace/srv/fs/tmpfs/tmpfs.c

    r9eb1ff5 rc1694b6b  
    4646#include <async.h>
    4747#include <errno.h>
     48#include <str_error.h>
    4849#include <stdio.h>
    4950#include <task.h>
     
    8990            &tmpfs_libfs_ops);
    9091        if (rc != EOK) {
    91                 printf(NAME ": Failed to register file system (%d)\n", rc);
     92                printf(NAME ": Failed to register file system: %s\n", str_error(rc));
    9293                return rc;
    9394        }
  • uspace/srv/fs/udf/udf.c

    r9eb1ff5 rc1694b6b  
    4141#include <async.h>
    4242#include <errno.h>
     43#include <str_error.h>
    4344#include <task.h>
    4445#include <libfs.h>
     
    9697       
    9798err:
    98         log_msg(LOG_DEFAULT, LVL_FATAL, "Failed to register file system (%d)", rc);
     99        log_msg(LOG_DEFAULT, LVL_FATAL, "Failed to register file system: %s", str_error(rc));
    99100        return rc;
    100101}
Note: See TracChangeset for help on using the changeset viewer.