From: Martin K. Petersen Date: Sun, 4 Jan 2009 08:04:32 +0000 (-0500) Subject: [SCSI] sd: DIF: Show app tag on error X-Git-Tag: v2.6.29-rc1~41^2~14 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=10da5181688886758ce162705aaad8131b963e99;p=linux-2.6-omap-h63xx.git [SCSI] sd: DIF: Show app tag on error Add application tag to the output displayed on error. Signed-off-by: Martin K. Petersen Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/sd_dif.c b/drivers/scsi/sd_dif.c index 3ebb1f28949..2fe590f095f 100644 --- a/drivers/scsi/sd_dif.c +++ b/drivers/scsi/sd_dif.c @@ -475,8 +475,9 @@ int sd_dif_prepare(struct request *rq, sector_t hw_sector, unsigned int sector_s error: kunmap_atomic(sdt, KM_USER0); - sd_printk(KERN_ERR, sdkp, "%s: virt %u, phys %u, ref %u\n", - __func__, virt, phys, be32_to_cpu(sdt->ref_tag)); + sd_printk(KERN_ERR, sdkp, "%s: virt %u, phys %u, ref %u, app %4x\n", + __func__, virt, phys, be32_to_cpu(sdt->ref_tag), + be16_to_cpu(sdt->app_tag)); return -EIO; }