simplify a code template for _qrintf_chk_?x