提交 20e007b8 编写于 作者: J James Bottomley

[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: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 7ba24713
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册