/* pmcraid_ioasc_logger - log IOASC information based user-settings @ioasc: ioasc code @cmd: pointer to command that resulted in 'ioasc'  */
void pmcraid_ioasc_logger(u32 ioasc, struct pmcraid_cmd *cmd)
/* pmcraid_ioasc_logger - log IOASC information based user-settings @ioasc: ioasc code @cmd: pointer to command that resulted in 'ioasc'  */
void pmcraid_ioasc_logger(u32 ioasc, struct pmcraid_cmd *cmd)
{
	struct pmcraid_ioasc_error *error_info = pmcraid_get_error_info(ioasc);
	if (error_info == NULL ||
		cmd->drv_inst->current_log_level < error_info->log_level)
		return;
	pmcraid_err("cmd [%d] for resource %x failed with %x(%s)\n",
		cmd->ioa_cb->ioarcb.cdb[0],
		cmd->ioa_cb->ioarcb.resource_handle,
		le32_to_cpu(ioasc), error_info->error_string);
}