From e3d41d397fc10934cfcbdc3160649f3782224df9 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Mon, 20 Oct 2008 23:51:53 -0400 Subject: [PATCH] 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" --- debugfs/ncheck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 1.8.3.1