From: Eric Sandeen <sandeen@xxxxxxxxxx> debug_tweak_on() already tests for debug. Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx> --- 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. */