Re: [PATCH v2 02/41] hpsa: clean up host, channel, target, lun prints

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +static inline void hpsa_show_dev_msg(int type, struct ctlr_info *h,
> +	struct hpsa_scsi_dev_t *dev, char *description)
> +{
> +#define HPSA_INFO 0
> +#define HPSA_WARN 1
> +#define HPSA_ERR 2
> +	if (type == HPSA_INFO)
> +		dev_info(&h->pdev->dev,
> +			"scsi %d:%d:%d:%d: %s %s %.8s %.16s RAID-%s SSDSmartPathCap%c En%c Exp=%d\n",

> +	else if (type == HPSA_WARN)
> +		dev_warn(&h->pdev->dev,
> +			"scsi %d:%d:%d:%d: %s %s %.8s %.16s RAID-%s SSDSmartPathCap%c En%c Exp=%d\n",

> +	else if (type == HPSA_ERR)
> +		dev_err(&h->pdev->dev,
> +			"scsi %d:%d:%d:%d: %s %s %.8s %.16s RAID-%s SSDSmartPathCap%c En%c Exp=%d\n",


Why don't you just pass in the kernel KERN_ levels and use dev_printk?


--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux