tbm_log: add the condition check macro with error