Message ID | 61fa5fe2-0ad9-80b2-f009-68a37682468d@sandeen.net (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | xfsprogs: env var stuff | expand |
On Wed, Sep 26, 2018 at 04:25:12PM -0500, Eric Sandeen wrote: > From: Eric Sandeen <sandeen@redhat.com> > > debug_tweak_on() already tests for debug. > > Signed-off-by: Eric Sandeen <sandeen@redhat.com> Looks ok, Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> --D > --- > > diff --git a/scrub/xfs_scrub.c b/scrub/xfs_scrub.c > index 076a86a..33b83a5 100644 > --- a/scrub/xfs_scrub.c > +++ b/scrub/xfs_scrub.c > @@ -425,7 +425,7 @@ run_scrub_phases( > unsigned int nr_threads; > int rshift; > > - if (debug && debug_tweak_on("XFS_SCRUB_PHASE")) > + if (debug_tweak_on("XFS_SCRUB_PHASE")) > debug_phase = atoi(getenv("XFS_SCRUB_PHASE")); > > /* Run all phases of the scrub tool. */ >
diff --git a/scrub/xfs_scrub.c b/scrub/xfs_scrub.c index 076a86a..33b83a5 100644 --- a/scrub/xfs_scrub.c +++ b/scrub/xfs_scrub.c @@ -425,7 +425,7 @@ run_scrub_phases( unsigned int nr_threads; int rshift; - if (debug && debug_tweak_on("XFS_SCRUB_PHASE")) + if (debug_tweak_on("XFS_SCRUB_PHASE")) debug_phase = atoi(getenv("XFS_SCRUB_PHASE")); /* Run all phases of the scrub tool. */