[XFS] turn xlog helper macros into real functions