LOG_NUMBER_MASK
((rtas_log_start+rtas_log_size) & LOG_NUMBER_MASK);
offset = rtas_error_log_buffer_max * (rtas_log_start & LOG_NUMBER_MASK);