summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2005-11-10 11:35:59 +0000
committerrwatson <rwatson@FreeBSD.org>2005-11-10 11:35:59 +0000
commitdcccc2e254b65c0d294c8ab60f302ee656ad0e55 (patch)
treed6b3b67315f3c0cbf5c4502a7912206e7ef063b3 /sys/kern
parentd654293ebdd120ff8ad9dd5c1b359ef5540009e3 (diff)
downloadFreeBSD-src-dcccc2e254b65c0d294c8ab60f302ee656ad0e55.zip
FreeBSD-src-dcccc2e254b65c0d294c8ab60f302ee656ad0e55.tar.gz
Expanet of details printed for each file descriptor to include it's
garbage collection flags. Reformat generally to make this fit and leave some room for future expansion. MFC after: 1 week
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_descrip.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index 9274f9b..ee96376 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -2527,14 +2527,14 @@ DB_SHOW_COMMAND(files, db_show_files)
struct file *fp;
struct proc *p;
- db_printf("%9s %4s %9s %9s %6s %9s %6s %12s\n", "File", "Type",
- "Data", "Flag", "Count", "Vnode", "FPid", "FCmd");
+ db_printf("%8s %4s %8s %8s %4s %5s %8s %5s %12s\n", "File",
+ "Type", "Data", "Flag", "GCFl", "Count", "Vnode", "FPID", "FCmd");
LIST_FOREACH(fp, &filehead, f_list) {
p = file_to_first_proc(fp);
- db_printf("%9p %4s %9p 0x%09x %6d %9p %6d %12s\n", fp,
+ db_printf("%8p %4s %8p %08x %04x %5d %8p %5d %12s\n", fp,
file_type_to_name(fp->f_type), fp->f_data, fp->f_flag,
- fp->f_count, fp->f_vnode, p != NULL ? p->p_pid : -1,
- p != NULL ? p->p_comm : "-");
+ fp->f_gcflag, fp->f_count, fp->f_vnode,
+ p != NULL ? p->p_pid : -1, p != NULL ? p->p_comm : "-");
}
}
#endif
OpenPOWER on IntegriCloud