Changeset d57e08f in mainline for uspace/srv/fs/fat/fat.c


Ignore:
Timestamp:
2009-10-02T14:20:27Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f563126
Parents:
f5af635 (diff), bbddafb (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.
Message:

Merge file system shell interaction improvements.

File:
1 edited

Legend:

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

    rf5af635 rd57e08f  
    4343#include <errno.h>
    4444#include <unistd.h>
     45#include <task.h>
    4546#include <stdio.h>
    4647#include <libfs.h>
    4748#include "../../vfs/vfs.h"
    4849
     50#define NAME    "fat"
    4951
    5052vfs_info_t fat_vfs_info = {
    51         .name = "fat",
     53        .name = NAME,
    5254};
    5355
     
    8385        }
    8486       
    85         dprintf("VFS-FAT connection established.\n");
     87        dprintf(NAME ": connection opened\n");
    8688        while (1) {
    8789                ipc_callid_t callid;
     
    137139        int rc;
    138140
    139         printf("fat: HelenOS FAT file system server.\n");
     141        printf(NAME ": HelenOS FAT file system server\n");
    140142
    141143        rc = fat_idx_init();
     
    145147        vfs_phone = ipc_connect_me_to_blocking(PHONE_NS, SERVICE_VFS, 0, 0);
    146148        if (vfs_phone < EOK) {
    147                 printf("fat: failed to connect to VFS\n");
     149                printf(NAME ": failed to connect to VFS\n");
    148150                return -1;
    149151        }
     
    155157        }
    156158       
    157         dprintf("FAT filesystem registered, fs_handle=%d.\n",
    158             fat_reg.fs_handle);
    159 
     159        printf(NAME ": Accepting connections\n");
     160        task_retval(0);
    160161        async_manager();
    161162        /* not reached */
     
    163164
    164165err:
    165         printf("Failed to register the FAT file system (%d)\n", rc);
     166        printf(NAME ": Failed to register file system (%d)\n", rc);
    166167        return rc;
    167168}
Note: See TracChangeset for help on using the changeset viewer.