Minor reformatting patch to make applying later patches easier. Signed-off-by: Andreas Dilger <adilger@xxxxxxx> Index: e2fsprogs-cfs/e2fsck/unix.c =================================================================== --- e2fsprogs-cfs.orig/e2fsck/unix.c +++ e2fsprogs-cfs/e2fsck/unix.c @@ -537,14 +537,13 @@ static void parse_extended_opts(e2fsck_t continue; } ea_ver = strtoul(arg, &p, 0); - if (*p || - ((ea_ver != 1) && (ea_ver != 2))) { - fprintf(stderr, - _("Invalid EA version.\n")); + if (*p == '\0' && (ea_ver == 1 || ea_ver == 2)) { + ctx->ext_attr_ver = ea_ver; + } else { + fprintf(stderr, _("Invalid EA version.\n")); extended_usage++; continue; } - ctx->ext_attr_ver = ea_ver; } else { fprintf(stderr, _("Unknown extended option: %s\n"), token); @@ -558,7 +557,8 @@ static void parse_extended_opts(e2fsck_t "and may take an argument which\n" "is set off by an equals ('=') sign. " "Valid extended options are:\n" - "\tea_ver=<ea_version (1 or 2)>\n\n"), stderr); + "\tea_ver=<ea_version (1 or 2)>\n" + "\n"), stderr); exit(1); } } Cheers, Andreas -- Andreas Dilger Sr. Staff Engineer, Lustre Group Sun Microsystems of Canada, Inc. - To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html