From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (Postfix) with ESMTP id DDB737F3F for ; Wed, 29 Oct 2014 14:25:08 -0500 (CDT) Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by relay3.corp.sgi.com (Postfix) with ESMTP id 5E3F9AC005 for ; Wed, 29 Oct 2014 12:25:05 -0700 (PDT) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by cuda.sgi.com with ESMTP id 383gOTCsb6HqKX4d (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Wed, 29 Oct 2014 12:25:04 -0700 (PDT) Date: Wed, 29 Oct 2014 15:24:53 -0400 From: Brian Foster Subject: Re: [PATCH 1/2] repair: fix XR_BLD_FREE_TRACE compilation errors Message-ID: <20141029192453.GA2084@bfoster.laptop> References: <1414552144-12627-1-git-send-email-david@fromorbit.com> <1414552144-12627-2-git-send-email-david@fromorbit.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1414552144-12627-2-git-send-email-david@fromorbit.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Dave Chinner Cc: bvowk@box.com, xfs@oss.sgi.com On Wed, Oct 29, 2014 at 02:09:03PM +1100, Dave Chinner wrote: > From: Dave Chinner > > Obviously hasn't been used for quite some time, so fix the > build problems and make it useful again. > > Signed-off-by: Dave Chinner > --- Reviewed-by: Brian Foster > repair/phase5.c | 17 ++++++----------- > 1 file changed, 6 insertions(+), 11 deletions(-) > > diff --git a/repair/phase5.c b/repair/phase5.c > index e82eeb7..d6d3c6d 100644 > --- a/repair/phase5.c > +++ b/repair/phase5.c > @@ -362,10 +362,6 @@ calculate_freespace_cursor(xfs_mount_t *mp, xfs_agnumber_t agno, > extent_tree_node_t *ext_ptr; > int level; > #ifdef XR_BLD_FREE_TRACE > - int old_state; > - int state = XR_E_BAD_STATE; > -#endif > -#ifdef XR_BLD_FREE_TRACE > fprintf(stderr, > "in init_freespace_cursor, agno = %d\n", agno); > #endif > @@ -1292,8 +1288,8 @@ build_agf_agfl(xfs_mount_t *mp, > memset(agf, 0, mp->m_sb.sb_sectsize); > > #ifdef XR_BLD_FREE_TRACE > - fprintf(stderr, "agf = 0x%x, agf_buf->b_un.b_addr = 0x%x\n", > - (__psint_t) agf, (__psint_t) agf_buf->b_un.b_addr); > + fprintf(stderr, "agf = 0x%p, agf_buf->b_addr = 0x%p\n", > + agf, agf_buf->b_addr); > #endif > > /* > @@ -1452,7 +1448,7 @@ build_agf_agfl(xfs_mount_t *mp, > } > > #ifdef XR_BLD_FREE_TRACE > - fprintf(stderr, "wrote agf for ag %u, error = %d\n", agno, error); > + fprintf(stderr, "wrote agf for ag %u\n", agno); > #endif > } > > @@ -1707,11 +1703,10 @@ phase5(xfs_mount_t *mp) > #ifdef XR_BLD_FREE_TRACE > fprintf(stderr, "inobt level 1, maxrec = %d, minrec = %d\n", > xfs_inobt_maxrecs(mp, mp->m_sb.sb_blocksize, 0), > - xfs_inobt_maxrecs(mp->m_sb.sb_blocksize, 0) / 2 > - ); > + xfs_inobt_maxrecs(mp, mp->m_sb.sb_blocksize, 0) / 2); > fprintf(stderr, "inobt level 0 (leaf), maxrec = %d, minrec = %d\n", > - xfs_inobt_maxrecs(mp, mp->m_sb.sb_blocksize, xfs_inobt, 1), > - xfs_inobt_maxrecs(mp, mp->m_sb.sb_blocksize, xfs_inobt, 1) / 2); > + xfs_inobt_maxrecs(mp, mp->m_sb.sb_blocksize, 1), > + xfs_inobt_maxrecs(mp, mp->m_sb.sb_blocksize, 1) / 2); > fprintf(stderr, "xr inobt level 0 (leaf), maxrec = %d\n", > XR_INOBT_BLOCK_MAXRECS(mp, 0)); > fprintf(stderr, "xr inobt level 1 (int), maxrec = %d\n", > -- > 2.0.0 > > _______________________________________________ > xfs mailing list > xfs@oss.sgi.com > http://oss.sgi.com/mailman/listinfo/xfs _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs