[haiku-commits] r35582 - haiku/trunk/src/system/kernel/fs

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 23 Feb 2010 14:43:43 +0100 (CET)

Author: bonefish
Date: 2010-02-23 14:43:43 +0100 (Tue, 23 Feb 2010)
New Revision: 35582
Changeset: http://dev.haiku-os.org/changeset/35582/haiku

Modified:
   haiku/trunk/src/system/kernel/fs/vfs.cpp
Log:
Beautified the output of the "io_context" command.


Modified: haiku/trunk/src/system/kernel/fs/vfs.cpp
===================================================================
--- haiku/trunk/src/system/kernel/fs/vfs.cpp    2010-02-23 13:42:55 UTC (rev 
35581)
+++ haiku/trunk/src/system/kernel/fs/vfs.cpp    2010-02-23 13:43:43 UTC (rev 
35582)
@@ -3226,16 +3226,19 @@
        kprintf(" max fds:\t%lu\n", context->table_size);
 
        if (context->num_used_fds)
-               kprintf("   no. type     ops ref open mode        pos 
cookie\n");
+               kprintf("   no.  type         ops  ref  open  mode         pos"
+                       "      cookie\n");
 
        for (uint32 i = 0; i < context->table_size; i++) {
                struct file_descriptor* fd = context->fds[i];
                if (fd == NULL)
                        continue;
 
-               kprintf("  %3lu: %ld %p %3ld %4ld %4lx %10Ld %p %s %p\n", i, 
fd->type,
-                       fd->ops, fd->ref_count, fd->open_count, fd->open_mode, 
fd->pos,
-                       fd->cookie, fd->type >= FDTYPE_INDEX && fd->type <= 
FDTYPE_QUERY
+               kprintf("  %3" B_PRIu32 ":  %4" B_PRId32 "  %p  %3" B_PRId32 "  
%4"
+                       B_PRIu32 "  %4" B_PRIx32 "  %10" B_PRIdOFF "  %p  %s 
%p\n", i,
+                       fd->type, fd->ops, fd->ref_count, fd->open_count, 
fd->open_mode,
+                       fd->pos, fd->cookie,
+                       fd->type >= FDTYPE_INDEX && fd->type <= FDTYPE_QUERY
                                ? "mount" : "vnode",
                        fd->u.vnode);
        }


Other related posts:

  • » [haiku-commits] r35582 - haiku/trunk/src/system/kernel/fs - ingo_weinhold