Changeset 76f566d in mainline for uspace/srv/fs/tmpfs/tmpfs.c
- Timestamp:
- 2018-07-05T09:32:27Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 984a9ba
- Parents:
- 5e904dd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/tmpfs/tmpfs.c
r5e904dd r76f566d 53 53 #include "../../vfs/vfs.h" 54 54 55 #define NAME "tmpfs" 56 55 #define NAME "tmpfs" 57 56 58 57 vfs_info_t tmpfs_vfs_info = { … … 65 64 int main(int argc, char **argv) 66 65 { 67 printf( NAME ": HelenOS TMPFS file system server\n");66 printf("%s: HelenOS TMPFS file system server\n", NAME); 68 67 69 68 if (argc == 3) { … … 71 70 tmpfs_vfs_info.instance = strtol(argv[2], NULL, 10); 72 71 else { 73 printf( NAME " Unrecognized parameters");72 printf("%s: Unrecognized parameters", NAME); 74 73 return -1; 75 74 } … … 77 76 78 77 if (!tmpfs_init()) { 79 printf( NAME ": failed to initialize TMPFS\n");78 printf("%s: Failed to initialize TMPFS\n", NAME); 80 79 return -1; 81 80 } … … 84 83 INTERFACE_VFS_DRIVER, 0); 85 84 if (!vfs_sess) { 86 printf( NAME ": Unable to connect to VFS\n");85 printf("%s: Unable to connect to VFS\n", NAME); 87 86 return -1; 88 87 } … … 91 90 &tmpfs_libfs_ops); 92 91 if (rc != EOK) { 93 printf(NAME ": Failed to register file system: %s\n", str_error(rc)); 92 printf("%s: Failed to register file system: %s\n", NAME, 93 str_error(rc)); 94 94 return rc; 95 95 } 96 96 97 printf( NAME ": Accepting connections\n");97 printf("%s: Accepting connections\n", NAME); 98 98 task_retval(0); 99 99 async_manager();
Note:
See TracChangeset
for help on using the changeset viewer.