diff options
author | Christopher Faylor <me@cgf.cx> | 2001-04-02 14:58:47 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-04-02 14:58:47 +0000 |
commit | c6cd25a033ca01bb71c74edb846c10714a354792 (patch) | |
tree | 39d5e8f22f22a95e6445ad6446fbfe51c0339cc8 | |
parent | 0f0a7dc99d2e837828b14035817f2428437aa1c6 (diff) | |
download | cygnal-c6cd25a033ca01bb71c74edb846c10714a354792.tar.gz cygnal-c6cd25a033ca01bb71c74edb846c10714a354792.tar.bz2 cygnal-c6cd25a033ca01bb71c74edb846c10714a354792.zip |
* mount.cc (show_mounts): Change format string to more closely resemble UNIX
when displaying mount table.
-rw-r--r-- | winsup/utils/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/utils/mount.cc | 12 |
2 files changed, 8 insertions, 9 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index eb5c2a931..df9416fa2 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,8 @@ +Mon Apr 2 10:58:26 2001 Christopher Faylor <cgf@cygnus.com> + + * mount.cc (show_mounts): Change format string to more closely resemble + UNIX when displaying mount table. + Sat Mar 17 21:46:06 2001 Christopher Faylor <cgf@cygnus.com> * kill.cc (forcekill): Use dwProcessId when opening a process, not the diff --git a/winsup/utils/mount.cc b/winsup/utils/mount.cc index 4117c01c5..1a671dd04 100644 --- a/winsup/utils/mount.cc +++ b/winsup/utils/mount.cc @@ -188,17 +188,11 @@ show_mounts (void) { FILE *m = setmntent ("/-not-used-", "r"); struct mntent *p; - const char *format = "%-18s %-18s %-11s %s\n"; + const char *format = "%s on %s type %s (%s)\n"; - printf (format, "Device", "Directory", "Type", "Flags"); + // printf (format, "Device", "Directory", "Type", "Flags"); while ((p = getmntent (m)) != NULL) - { - printf (format, - p->mnt_fsname, - p->mnt_dir, - p->mnt_type, - p->mnt_opts); - } + printf (format, p->mnt_fsname, p->mnt_dir, p->mnt_type, p->mnt_opts); endmntent (m); } |