diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2010-11-13 11:44:33 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-11-15 12:34:44 -0500 |
commit | e25cd062b16ed1d41a157aec5a108abd6ff2e9f9 (patch) | |
tree | 2cda9188eda2221b9402845ca81fe22d09c8e725 /drivers/pci | |
parent | 82e3e767c21fef2b1b38868e20eb4e470a1e38e3 (diff) |
PCI: sysfs: fix printk warnings
Cast pci_resource_start() and pci_resource_len() to u64 for printk.
drivers/pci/pci-sysfs.c:753: warning: format '%16Lx' expects type 'long long unsigned int', but argument 9 has type 'resource_size_t'
drivers/pci/pci-sysfs.c:753: warning: format '%16Lx' expects type 'long long unsigned int', but argument 10 has type 'resource_size_t'
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/pci-sysfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c index 25accc9dda3b..95712a375cd5 100644 --- a/drivers/pci/pci-sysfs.c +++ b/drivers/pci/pci-sysfs.c | |||
@@ -754,7 +754,8 @@ pci_mmap_resource(struct kobject *kobj, struct bin_attribute *attr, | |||
754 | "at page 0x%08lx on %s BAR %d (start 0x%16Lx, size 0x%16Lx)\n", | 754 | "at page 0x%08lx on %s BAR %d (start 0x%16Lx, size 0x%16Lx)\n", |
755 | current->comm, vma->vm_end-vma->vm_start, vma->vm_pgoff, | 755 | current->comm, vma->vm_end-vma->vm_start, vma->vm_pgoff, |
756 | pci_name(pdev), i, | 756 | pci_name(pdev), i, |
757 | pci_resource_start(pdev, i), pci_resource_len(pdev, i)); | 757 | (u64)pci_resource_start(pdev, i), |
758 | (u64)pci_resource_len(pdev, i)); | ||
758 | return -EINVAL; | 759 | return -EINVAL; |
759 | } | 760 | } |
760 | 761 | ||