Commit a7968735 authored by James Bottomley's avatar James Bottomley

SCSI: fix compile warning in fc transport class

  CC [M]  drivers/scsi/scsi_transport_fc.o
drivers/scsi/scsi_transport_fc.c: In function `fc_stat_show':
drivers/scsi/scsi_transport_fc.c:634: warning: long long unsigned int format, long unsigned int arg (arg 4)

To us %llx on a 64 bit platform we have to cast u64 to 
unsigned long long.
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 85175168
......@@ -631,7 +631,7 @@ fc_stat_show(const struct class_device *cdev, char *buf, unsigned long offset)
stats = (i->f->get_fc_host_stats)(shost);
if (stats)
ret = snprintf(buf, 20, "0x%llx\n",
*(u64 *)(((u8 *) stats) + offset));
(unsigned long long)*(u64 *)(((u8 *) stats) + offset));
}
return ret;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment