]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
firewire: fw-device printk fix
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 26 Apr 2007 07:16:04 +0000 (00:16 -0700)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Thu, 26 Apr 2007 23:28:47 +0000 (01:28 +0200)
You don't know what type is used to implement u64.

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-device.c

index 7503b8d9abe5ccc06e936932250e67ed47a8049a..3841086048d6b8992442f9ef1ae27148cfd4f83d 100644 (file)
@@ -362,7 +362,8 @@ guid_show(struct device *dev, struct device_attribute *attr, char *buf)
 
        guid = ((u64)device->config_rom[3] << 32) | device->config_rom[4];
 
-       return snprintf(buf, PAGE_SIZE, "0x%016llx\n", guid);
+       return snprintf(buf, PAGE_SIZE, "0x%016llx\n",
+                       (unsigned long long)guid);
 }
 
 static struct device_attribute fw_device_attributes[] = {