Changeset c2245a3 in mainline for uspace/app/bdsh/cmds/modules/mount/mount.c
- Timestamp:
- 2011-11-10T20:03:48Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fa76f81
- Parents:
- 27ca3a3 (diff), 747ef72 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/mount/mount.c
r27ca3a3 rc2245a3 27 27 */ 28 28 29 #include <loc.h> 29 30 #include <stdio.h> 30 31 #include <stdlib.h> … … 67 68 { 68 69 LIST_INITIALIZE(mtab_list); 70 mtab_ent_t *old_ent = NULL; 71 char *svc_name; 72 int rc; 73 69 74 get_mtab_list(&mtab_list); 70 71 mtab_ent_t *old_ent = NULL;72 75 73 76 list_foreach(mtab_list, cur) { … … 83 86 if (mtab_ent->instance) 84 87 printf("/%d", mtab_ent->instance); 85 printf(" on %s ", mtab_ent->mp); 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 } 86 98 87 99 if (str_size(mtab_ent->opts) > 0) 88 printf(" opts=%s", mtab_ent->opts);100 printf(" (%s)", mtab_ent->opts); 89 101 90 p rintf("(service=%" PRIun ")\n", mtab_ent->service_id);102 putchar('\n'); 91 103 } 92 104
Note:
See TracChangeset
for help on using the changeset viewer.