On 11/06/2014 08:33 AM, Christoph Hellwig wrote:
>> +#define scmd_format_header(b, l, d, t) \
>> +sdev_format_header(b, l, (d) ? (d)->disk_name : NULL, t)
>
> I'd rather have a
>
> static inline const char *scmd_name(struct scsi_cmnd *scmd)
> {
> return scmd->request->rq_disk ?
>
> +#define scmd_format_header(b, l, d, t) \
> + sdev_format_header(b, l, (d) ? (d)->disk_name : NULL, t)
I'd rather have a
static inline const char *scmd_name(struct scsi_cmnd *scmd)
{
return scmd->request->rq_disk ?
scmd->request->rq_disk->disk_name : NULL;
}
helper
Convert sense buffer logging to use the per-cpu
buffer to avoid line breakup.
Signed-off-by: Hannes Reinecke
---
drivers/scsi/constants.c| 107 ---
drivers/scsi/scsi_logging.c | 150 ++--
drivers/scsi/sd.c | 7 +-
3 matches
Mail list logo