Changeset 41047bf in mainline


Ignore:
Timestamp:
2011-11-06T17:33:46Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e6da6d5
Parents:
4f100f4
Message:

Fix formatter for service_id_t, print fs instance number more compactly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/mount/mount.c

    r4f100f4 r41047bf  
    3333#include <errno.h>
    3434#include <getopt.h>
     35#include <inttypes.h>
    3536#include "config.h"
    3637#include "util.h"
     
    7980                old_ent = mtab_ent;
    8081
    81                 printf("%s on %s ", mtab_ent->fs_name, mtab_ent->mp);
     82                printf("%s", mtab_ent->fs_name);
     83                if (mtab_ent->instance)
     84                        printf("/%d", mtab_ent->instance);
     85                printf(" on %s ", mtab_ent->mp);
    8286
    8387                if (str_size(mtab_ent->opts) > 0)
    8488                        printf("opts=%s ", mtab_ent->opts);
    8589
    86                 printf("(instance=%d, service_id=%" PRIu64 ")\n",
    87                     mtab_ent->instance, mtab_ent->service_id);
     90                printf("(service=%" PRIun ")\n", mtab_ent->service_id);
    8891        }
    8992
Note: See TracChangeset for help on using the changeset viewer.