Changeset 76f566d in mainline for uspace/srv/fs/tmpfs/tmpfs.c


Ignore:
Timestamp:
2018-07-05T09:32:27Z (6 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
984a9ba
Parents:
5e904dd
Message:

coding style improvements (no change in functionality)

File:
1 edited

Legend:

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

    r5e904dd r76f566d  
    5353#include "../../vfs/vfs.h"
    5454
    55 #define NAME "tmpfs"
    56 
     55#define NAME  "tmpfs"
    5756
    5857vfs_info_t tmpfs_vfs_info = {
     
    6564int main(int argc, char **argv)
    6665{
    67         printf(NAME ": HelenOS TMPFS file system server\n");
     66        printf("%s: HelenOS TMPFS file system server\n", NAME);
    6867
    6968        if (argc == 3) {
     
    7170                        tmpfs_vfs_info.instance = strtol(argv[2], NULL, 10);
    7271                else {
    73                         printf(NAME " Unrecognized parameters");
     72                        printf("%s: Unrecognized parameters", NAME);
    7473                        return -1;
    7574                }
     
    7776
    7877        if (!tmpfs_init()) {
    79                 printf(NAME ": failed to initialize TMPFS\n");
     78                printf("%s: Failed to initialize TMPFS\n", NAME);
    8079                return -1;
    8180        }
     
    8483            INTERFACE_VFS_DRIVER, 0);
    8584        if (!vfs_sess) {
    86                 printf(NAME ": Unable to connect to VFS\n");
     85                printf("%s: Unable to connect to VFS\n", NAME);
    8786                return -1;
    8887        }
     
    9190            &tmpfs_libfs_ops);
    9291        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));
    9494                return rc;
    9595        }
    9696
    97         printf(NAME ": Accepting connections\n");
     97        printf("%s: Accepting connections\n", NAME);
    9898        task_retval(0);
    9999        async_manager();
Note: See TracChangeset for help on using the changeset viewer.