Whamcloud - gitweb
resize2fs.c (check_and_change_inodes): Fix debugging printf to
authorTheodore Ts'o <tytso@mit.edu>
Fri, 17 Sep 2004 21:10:17 +0000 (17:10 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 17 Sep 2004 21:10:17 +0000 (17:10 -0400)
mask off the high 256 bits of dirent->name_len (which is
where the file type information is stored).  (Addresses
Debian Bug #271605)

resize/ChangeLog
resize/resize2fs.c

index aa52dc0..1cc56f2 100644 (file)
@@ -1,3 +1,10 @@
+2004-09-17  Theodore Ts'o  <tytso@mit.edu>
+
+       * resize2fs.c (check_and_change_inodes): Fix debugging printf to
+               mask off the high 256 bits of dirent->name_len (which is
+               where the file type information is stored).  (Addresses
+               Debian Bug #271605)
+
 2004-04-03  Theodore Ts'o  <tytso@mit.edu>
 
        * Makefile.in: Update the modtime even if subst doesn't need to
index b7f2c99..3befbaa 100644 (file)
@@ -1232,7 +1232,7 @@ static int check_and_change_inodes(ext2_ino_t dir,
 #ifdef RESIZE2FS_DEBUG
        if (is->rfs->flags & RESIZE_DEBUG_INODEMAP)
                printf(_("Inode translate (dir=%u, name=%.*s, %u->%u)\n"),
-                      dir, dirent->name_len, dirent->name,
+                      dir, dirent->name_len&0xFF, dirent->name,
                       dirent->inode, new_inode);
 #endif