From: Theodore Ts'o Date: Tue, 21 Oct 2008 03:51:53 +0000 (-0400) Subject: debugfs: Fix ncheck display so that extra characters aren't printed X-Git-Tag: v1.41.4~46 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=e3d41d397fc10934cfcbdc3160649f3782224df9;p=tools%2Fe2fsprogs.git debugfs: Fix ncheck display so that extra characters aren't printed Fix a single-character typo in the printf format statement. Signed-off-by: "Theodore Ts'o" --- diff --git a/debugfs/ncheck.c b/debugfs/ncheck.c index abb38a8..166be6b 100644 --- a/debugfs/ncheck.c +++ b/debugfs/ncheck.c @@ -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); } }