[SCSI] iscsi: fix 64 bit compile warning
authorJames Bottomley <jejb@titanic.(none)>
Sat, 6 Aug 2005 16:50:03 +0000 (11:50 -0500)
committerJames Bottomley <jejb@titanic.(none)>
Tue, 9 Aug 2005 21:18:19 +0000 (16:18 -0500)
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>
drivers/scsi/scsi_transport_iscsi.c

index 2effa1c33fb242234f9c0625af0bea047c697ddb..f189ce7541ff43c80b56067c0b25a5b3f7fbb855 100644 (file)
@@ -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);
 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);
 
 }
 static CLASS_DEVICE_ATTR(handle, S_IRUGO, show_transport_handle, NULL);