Whamcloud - gitweb
debugfs: Fix ncheck display so that extra characters aren't printed
authorTheodore Ts'o <tytso@mit.edu>
Tue, 21 Oct 2008 03:51:53 +0000 (23:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 21 Oct 2008 03:51:53 +0000 (23:51 -0400)
Fix a single-character typo in the printf format statement.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debugfs/ncheck.c

index abb38a8..166be6b 100644 (file)
@@ -42,7 +42,7 @@ static int ncheck_proc(struct ext2_dir_entry *dirent,
                return 0;
        for (i=0; i < iw->num_inodes; i++) {
                if (iw->iarray[i] == dirent->inode) {
-                       printf("%u\t%s/%*s\n", iw->iarray[i], iw->parent,
+                       printf("%u\t%s/%.*s\n", iw->iarray[i], iw->parent,
                               (dirent->name_len & 0xFF), dirent->name);
                }
        }