diff options
| author | Bjorn Helgaas <bhelgaas@google.com> | 2014-03-19 17:11:19 -0400 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-03-19 17:11:19 -0400 |
| commit | 30723cbf6f7aec2ab4810bdc4bf12c5749a09e33 (patch) | |
| tree | 840833435357419595fee44b2a06f9864f1458c9 /lib | |
| parent | 91b4adc983d8e9975bc677c2b8395631edf7b92d (diff) | |
| parent | f2e6027b816df3326d3f40d6ce55539a2f381529 (diff) | |
Merge branch 'pci/resource' into next
* pci/resource: (26 commits)
Revert "[PATCH] Insert GART region into resource map"
PCI: Log IDE resource quirk in dmesg
PCI: Change pci_bus_alloc_resource() type_mask to unsigned long
PCI: Check all IORESOURCE_TYPE_BITS in pci_bus_alloc_from_region()
resources: Set type in __request_region()
PCI: Don't check resource_size() in pci_bus_alloc_resource()
s390/PCI: Use generic pci_enable_resources()
tile PCI RC: Use default pcibios_enable_device()
sparc/PCI: Use default pcibios_enable_device() (Leon only)
sh/PCI: Use default pcibios_enable_device()
microblaze/PCI: Use default pcibios_enable_device()
alpha/PCI: Use default pcibios_enable_device()
PCI: Add "weak" generic pcibios_enable_device() implementation
PCI: Don't enable decoding if BAR hasn't been assigned an address
PCI: Mark 64-bit resource as IORESOURCE_UNSET if we only support 32-bit
PCI: Don't try to claim IORESOURCE_UNSET resources
PCI: Check IORESOURCE_UNSET before updating BAR
PCI: Don't clear IORESOURCE_UNSET when updating BAR
PCI: Mark resources as IORESOURCE_UNSET if we can't assign them
PCI: Remove pci_find_parent_resource() use for allocation
...
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/vsprintf.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 185b6d300ebc..5e2cf6f342f8 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c | |||
| @@ -719,10 +719,15 @@ char *resource_string(char *buf, char *end, struct resource *res, | |||
| 719 | specp = &mem_spec; | 719 | specp = &mem_spec; |
| 720 | decode = 0; | 720 | decode = 0; |
| 721 | } | 721 | } |
| 722 | p = number(p, pend, res->start, *specp); | 722 | if (decode && res->flags & IORESOURCE_UNSET) { |
| 723 | if (res->start != res->end) { | 723 | p = string(p, pend, "size ", str_spec); |
| 724 | *p++ = '-'; | 724 | p = number(p, pend, resource_size(res), *specp); |
| 725 | p = number(p, pend, res->end, *specp); | 725 | } else { |
| 726 | p = number(p, pend, res->start, *specp); | ||
| 727 | if (res->start != res->end) { | ||
| 728 | *p++ = '-'; | ||
| 729 | p = number(p, pend, res->end, *specp); | ||
| 730 | } | ||
| 726 | } | 731 | } |
| 727 | if (decode) { | 732 | if (decode) { |
| 728 | if (res->flags & IORESOURCE_MEM_64) | 733 | if (res->flags & IORESOURCE_MEM_64) |
