Skip to contentSkip to conversation

f2fs_io: fix format mismatch for ino_t

PATCH New Daniel Lee via Linux-f2fs-devel 1 participant 1 message Jul 17, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 f2fs_io: fix format mismatch for ino_t

The ino_t type can be defined as either 'unsigned long' or 'unsigned long long'.

---
 tools/f2fs_io/f2fs_io.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/f2fs_io/f2fs_io.c +2 -2
index 8e81ba9..595d1e6 100644
@@ -2329,8 +2329,8 @@ static void do_test_lookup_perf(int argc, char **argv, const struct cmd_desc *cm
 		if (!verb)
 			continue;
 
-		printf("%-8lu %-10s %-9d %-8jd %s\n",
-			dp->d_ino,
+		printf("%-8llu %-10s %-9d %-8jd %s\n",
+			(unsigned long long)dp->d_ino,
 			(dp->d_type == DT_REG) ?  "regular" :
 			(dp->d_type == DT_DIR) ?  "directory" :
 			(dp->d_type == DT_FIFO) ? "FIFO" :
Signature · 8 lines
2.50.0.727.gbf7dc18ff4-goog



_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel