Changes in uspace/srv/fs/mfs/mfs.c [582a0b8:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/mfs/mfs.c
r582a0b8 rb7fd2a0 44 44 #include <async.h> 45 45 #include <errno.h> 46 #include <str_error.h> 46 47 #include <task.h> 47 48 #include <stdio.h> … … 58 59 int main(int argc, char **argv) 59 60 { 60 int rc;61 errno_t rc; 61 62 62 63 printf(NAME ": HelenOS Minix file system server\n"); … … 67 68 else { 68 69 printf(NAME " Unrecognized parameters"); 69 rc = -1;70 rc = EINVAL; 70 71 goto err; 71 72 } … … 77 78 if (!vfs_sess) { 78 79 printf(NAME ": failed to connect to VFS\n"); 79 return -1; 80 rc = errno; 81 goto err; 80 82 } 81 83 … … 97 99 98 100 err: 99 printf(NAME ": Failed to register file system (%d)\n", rc);101 printf(NAME ": Failed to register file system: %s\n", str_error(rc)); 100 102 return rc; 101 103 }
Note:
See TracChangeset
for help on using the changeset viewer.