Fork us on GitHub Follow us on Facebook Follow us on Twitter

Ignore:
File:
1 edited

Legend:

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

    rbbddafb r852b801  
    4343#include <errno.h>
    4444#include <unistd.h>
    45 #include <task.h>
    4645#include <stdio.h>
    4746#include <libfs.h>
    4847#include "../../vfs/vfs.h"
    4948
    50 #define NAME    "fat"
    5149
    5250vfs_info_t fat_vfs_info = {
    53         .name = NAME,
     51        .name = "fat",
    5452};
    5553
     
    8583        }
    8684       
    87         dprintf(NAME ": connection opened\n");
     85        dprintf("VFS-FAT connection established.\n");
    8886        while (1) {
    8987                ipc_callid_t callid;
     
    139137        int rc;
    140138
    141         printf(NAME ": HelenOS FAT file system server\n");
     139        printf("fat: HelenOS FAT file system server.\n");
    142140
    143141        rc = fat_idx_init();
     
    147145        vfs_phone = ipc_connect_me_to_blocking(PHONE_NS, SERVICE_VFS, 0, 0);
    148146        if (vfs_phone < EOK) {
    149                 printf(NAME ": failed to connect to VFS\n");
     147                printf("fat: failed to connect to VFS\n");
    150148                return -1;
    151149        }
     
    157155        }
    158156       
    159         printf(NAME ": Accepting connections\n");
    160         task_retval(0);
     157        dprintf("FAT filesystem registered, fs_handle=%d.\n",
     158            fat_reg.fs_handle);
     159
    161160        async_manager();
    162161        /* not reached */
     
    164163
    165164err:
    166         printf(NAME ": Failed to register file system (%d)\n", rc);
     165        printf("Failed to register the FAT file system (%d)\n", rc);
    167166        return rc;
    168167}
Note: See TracChangeset for help on using the changeset viewer.