Changeset e1e4192 in mainline for uspace/srv/vfs/vfs.c
- Timestamp:
- 2012-06-03T20:45:58Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 90478727
- Parents:
- f7e69f5 (diff), 3123d2a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs.c
rf7e69f5 re1e4192 159 159 int main(int argc, char **argv) 160 160 { 161 printf( NAME ": HelenOS VFS server\n");161 printf("%s: HelenOS VFS server\n", NAME); 162 162 163 163 /* … … 165 165 */ 166 166 if (!vfs_nodes_init()) { 167 printf(NAME ": Failed to initialize VFS node hash table\n"); 167 printf("%s: Failed to initialize VFS node hash table\n", 168 NAME); 168 169 return ENOMEM; 169 170 } … … 175 176 AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE); 176 177 if (plb == (void *) -1) { 177 printf( NAME ": Cannot create address space area\n");178 printf("%s: Cannot create address space area\n", NAME); 178 179 return ENOMEM; 179 180 } … … 196 197 async_set_interrupt_received(notification_received); 197 198 event_task_subscribe(EVENT_TASK_STATE_CHANGE, VFS_TASK_STATE_CHANGE); 198 199 199 200 /* 200 201 * Register at the naming service. 201 202 */ 202 if (service_register(SERVICE_VFS) != EOK) { 203 int rc = service_register(SERVICE_VFS); 204 if (rc != EOK) { 203 205 printf("%s: Cannot register VFS service\n", NAME); 204 return EINVAL;206 return rc; 205 207 } 206 208 … … 208 210 * Start accepting connections. 209 211 */ 210 printf( NAME ": Accepting connections\n");212 printf("%s: Accepting connections\n", NAME); 211 213 async_manager(); 212 214 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.