summaryrefslogtreecommitdiff
path: root/drivers/scsi/scsi_transport_iscsi.c
diff options
context:
space:
mode:
authorJames Bottomley <jejb@titanic.(none)>2005-08-06 20:50:03 +0400
committerJames Bottomley <jejb@titanic.(none)>2005-08-10 01:18:19 +0400
commit20e007b8cc1266ff78810457d6e26c35c6b810ba (patch)
tree2a1080f78b400d40670fb3bacb5e92a0c4cfed68 /drivers/scsi/scsi_transport_iscsi.c
parent7ba2471389071707cb45e7f755b417edad68049d (diff)
downloadlinux-20e007b8cc1266ff78810457d6e26c35c6b810ba.tar.xz
[SCSI] iscsi: fix 64 bit compile warning
drivers/scsi/scsi_transport_iscsi.c: In function `show_transport_handle': drivers/scsi/scsi_transport_iscsi.c:100: warning: long long unsigned int format, long unsigned int arg (arg 3) is caused because uint64_t is only unsigned long on a 64 bit platform. Fix this by casting to unsigned long long. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/scsi_transport_iscsi.c')
-rw-r--r--drivers/scsi/scsi_transport_iscsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c
index 2effa1c33fb2..f189ce7541ff 100644
--- a/drivers/scsi/scsi_transport_iscsi.c
+++ b/drivers/scsi/scsi_transport_iscsi.c
@@ -97,7 +97,7 @@ static ssize_t
show_transport_handle(struct class_device *cdev, char *buf)
{
struct iscsi_internal *priv = cdev_to_iscsi_internal(cdev);
- return sprintf(buf, "%llu", iscsi_handle(priv->iscsi_transport));
+ return sprintf(buf, "%llu", (unsigned long long)iscsi_handle(priv->iscsi_transport));
}
static CLASS_DEVICE_ATTR(handle, S_IRUGO, show_transport_handle, NULL);