[sr-dev] git:master: xlog: remove code duplication between xlog and xlogl functions