summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-04-19 06:09:08 +0200
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-04-20 02:51:18 +0200
commit169e1a2a8a789fa84254695ec6a56fc410bb19a9 (patch)
treea12e7d6de595faae8ce3d05be54b6e6cb9c9c2fa /drivers/scsi
parent[SCSI] scsi_scan.c: fix compile warnings (diff)
downloadlinux-169e1a2a8a789fa84254695ec6a56fc410bb19a9.tar.xz
linux-169e1a2a8a789fa84254695ec6a56fc410bb19a9.zip
[SCSI] scsi_lib.c: fix warning in scsi_kmap_atomic_sg
drivers/scsi/scsi_lib.c: In function `scsi_kmap_atomic_sg': drivers/scsi/scsi_lib.c:2394: warning: unsigned int format, different type arg (arg 3) drivers/scsi/scsi_lib.c:2394: warning: unsigned int format, different type arg (arg 4) Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/scsi_lib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index 57453ca09700..68d413c444f9 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -2375,7 +2375,8 @@ void *scsi_kmap_atomic_sg(struct scatterlist *sg, int sg_count,
}
if (unlikely(i == sg_count)) {
- printk(KERN_ERR "%s: Bytes in sg: %u, requested offset %u, elements %d\n",
+ printk(KERN_ERR "%s: Bytes in sg: %zu, requested offset %zu, "
+ "elements %d\n",
__FUNCTION__, sg_len, *offset, sg_count);
WARN_ON(1);
return NULL;