summaryrefslogtreecommitdiff
path: root/debugfs
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2000-07-05 17:48:34 +0000
committerTheodore Ts'o <tytso@mit.edu>2000-07-05 17:48:34 +0000
commit1419717066683af09dcdcf4a2219d7872367cbeb (patch)
tree2950bc52021279f69fb0cbf281daa80c51a224d9 /debugfs
parent197fb3a33a6f2572c38bba9b7ffa172cccac5581 (diff)
downloade2fsprogs-1419717066683af09dcdcf4a2219d7872367cbeb.tar.gz
ChangeLog, debugfs.c:
debugfs.c (dump_inode): Make the generation field be printed as an unsigned integer.
Diffstat (limited to 'debugfs')
-rw-r--r--debugfs/ChangeLog5
-rw-r--r--debugfs/debugfs.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/debugfs/ChangeLog b/debugfs/ChangeLog
index 717fc2b6..713f3a2d 100644
--- a/debugfs/ChangeLog
+++ b/debugfs/ChangeLog
@@ -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
diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c
index 46471d18..857c2243 100644
--- a/debugfs/debugfs.c
+++ b/debugfs/debugfs.c
@@ -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);