xfs: refactor minimum log size formatting code