From: Eric Sandeen Date: Mon, 3 Mar 2014 01:22:02 +0000 (+1100) Subject: xfs_logprint: don't advance op counter in xlog_print_trans_icreate X-Git-Tag: v3.2.0-rc1~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=81c4920de663e151aed3fc3a2424d1bf19db39f9;p=thirdparty%2Fxfsprogs-dev.git xfs_logprint: don't advance op counter in xlog_print_trans_icreate xlog_print_trans_icreate is advancing the op counter "(*i)++" incorrectly; it only contains one region, and the loop which called it will properly advance the op once we're done. Found-by: Dave Chinner Signed-off-by: Eric Sandeen Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- diff --git a/logprint/log_misc.c b/logprint/log_misc.c index 7070fa356..52f1e85c3 100644 --- a/logprint/log_misc.c +++ b/logprint/log_misc.c @@ -810,7 +810,6 @@ xlog_print_trans_icreate( memmove(&icl_buf, *ptr, MIN(sizeof(struct xfs_icreate_log), len)); icl = &icl_buf; - (*i)++; *ptr += len; /* handle complete header only */