It allows to print more informations once assert() is triggered in init_sb_info().
Signed-off-by: Chao Yu <c...@kernel.org> --- fsck/mount.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/fsck/mount.c b/fsck/mount.c index a7f16e7..dbbeb56 100644 --- a/fsck/mount.c +++ b/fsck/mount.c @@ -1261,8 +1261,13 @@ int init_sb_info(struct f2fs_sb_info *sbi) if (get_device_info(i)) ASSERT(0); } else if (c.func != INJECT) { - ASSERT(!strcmp((char *)sb->devs[i].path, - (char *)c.devices[i].path)); + if (strcmp((char *)sb->devs[i].path, + (char *)c.devices[i].path)) { + MSG(0, "paths mismatch: %s, %s\n", + (char *)sb->devs[i].path, + (char *)c.devices[i].path); + ASSERT(0); + } } c.devices[i].total_segments = -- 2.49.0 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel