def execute_command(cmd, log_message="", error_message=""):
  if log_message:
    Log.print_info(log_message)
  try:
    subprocess.check_call(cmd)
  except BaseException, e:
    Log.print_critical(error_message % 'ERROR: %s' if error_message else str(e))
dataset/ETHPy150Open XiaoMi/minos/build/build_utils.py/execute_command/swapped operands of `%`