Ignore:
File:
1 edited

Legend:

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

    r2e1b9dc r41047bf  
    2727 */
    2828
    29 #include <loc.h>
    3029#include <stdio.h>
    3130#include <stdlib.h>
     
    6867{
    6968        LIST_INITIALIZE(mtab_list);
     69        get_mtab_list(&mtab_list);
     70
    7071        mtab_ent_t *old_ent = NULL;
    71         char *svc_name;
    72         int rc;
    73 
    74         get_mtab_list(&mtab_list);
    7572
    7673        list_foreach(mtab_list, cur) {
     
    8683                if (mtab_ent->instance)
    8784                        printf("/%d", mtab_ent->instance);
    88 
    89                 printf(" %s", mtab_ent->mp);
    90 
    91                 rc = loc_service_get_name(mtab_ent->service_id, &svc_name);
    92                 if (rc == EOK) {
    93                         printf(" %s", svc_name);
    94                         free(svc_name);
    95                 } else {
    96                         printf(" (%" PRIun ")", mtab_ent->service_id);
    97                 }
     85                printf(" on %s ", mtab_ent->mp);
    9886
    9987                if (str_size(mtab_ent->opts) > 0)
    100                         printf(" (%s)", mtab_ent->opts);
     88                        printf("opts=%s ", mtab_ent->opts);
    10189
    102                 putchar('\n');
     90                printf("(service=%" PRIun ")\n", mtab_ent->service_id);
    10391        }
    10492
Note: See TracChangeset for help on using the changeset viewer.