Skip to content

Commit 169e1a2

Browse files
Andrew MortonJames Bottomley
authored andcommitted
[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>
1 parent c5f2e64 commit 169e1a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/scsi/scsi_lib.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2375,7 +2375,8 @@ void *scsi_kmap_atomic_sg(struct scatterlist *sg, int sg_count,
23752375
}
23762376

23772377
if (unlikely(i == sg_count)) {
2378-
printk(KERN_ERR "%s: Bytes in sg: %u, requested offset %u, elements %d\n",
2378+
printk(KERN_ERR "%s: Bytes in sg: %zu, requested offset %zu, "
2379+
"elements %d\n",
23792380
__FUNCTION__, sg_len, *offset, sg_count);
23802381
WARN_ON(1);
23812382
return NULL;

0 commit comments

Comments
 (0)