Changes in uspace/app/bdsh/cmds/modules/mount/mount.c [2e1b9dc:41047bf] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/mount/mount.c
r2e1b9dc r41047bf 27 27 */ 28 28 29 #include <loc.h>30 29 #include <stdio.h> 31 30 #include <stdlib.h> … … 68 67 { 69 68 LIST_INITIALIZE(mtab_list); 69 get_mtab_list(&mtab_list); 70 70 71 mtab_ent_t *old_ent = NULL; 71 char *svc_name;72 int rc;73 74 get_mtab_list(&mtab_list);75 72 76 73 list_foreach(mtab_list, cur) { … … 86 83 if (mtab_ent->instance) 87 84 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); 98 86 99 87 if (str_size(mtab_ent->opts) > 0) 100 printf(" (%s)", mtab_ent->opts);88 printf("opts=%s ", mtab_ent->opts); 101 89 102 p utchar('\n');90 printf("(service=%" PRIun ")\n", mtab_ent->service_id); 103 91 } 104 92
Note:
See TracChangeset
for help on using the changeset viewer.