Whamcloud - gitweb
ChangeLog, debugfs.c:
authorTheodore Ts'o <tytso@mit.edu>
Wed, 5 Jul 2000 17:48:34 +0000 (17:48 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 5 Jul 2000 17:48:34 +0000 (17:48 +0000)
  debugfs.c (dump_inode): Make the generation field be printed as an
   unsigned integer.

debugfs/ChangeLog
debugfs/debugfs.c

index 717fc2b..713f3a2 100644 (file)
@@ -1,3 +1,8 @@
+2000-07-05  Theodore Ts'o  <tytso@valinux.com>
+
+       * debugfs.c (dump_inode): Make the generation field be printed as
+               an unsigned integer.
+
 2000-07-04    <tytso@snap.thunk.org>
 
        * Makefile.in: Use _SS_DIR_OVERRIDE to make sure we get the
index 46471d1..857c224 100644 (file)
@@ -418,7 +418,7 @@ static void dump_inode(ino_t inode_num, struct ext2_inode inode)
        else if (LINUX_S_ISSOCK(inode.i_mode)) i_type = "socket";
        else i_type = "bad type";
        fprintf(out, "Inode: %ld   Type: %s    ", inode_num, i_type);
-       fprintf(out, "Mode:  %04o   Flags: 0x%x   Generation: %d\n",
+       fprintf(out, "Mode:  %04o   Flags: 0x%x   Generation: %u\n",
                inode.i_mode & 0777, inode.i_flags, inode.i_generation);
        fprintf(out, "User: %5d   Group: %5d   Size: ",
                inode.i_uid, inode.i_gid);