Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1209483
| From | Yinghai Lu <yinghai@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3 01/51] PCI: Cleanup res_to_dev_res() printout for addon resources |
| Date | 2015-08-18 23:20 +0200 |
| Message-ID | <pYWsy-1Ba-11@gated-at.bofh.it> (permalink) |
| References | <pR09X-8vE-5@gated-at.bofh.it> <pR0tj-r2-5@gated-at.bofh.it> <pYBxL-4mJ-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Aug 17, 2015 at 3:50 PM, Bjorn Helgaas <bhelgaas@google.com> wrote:
> On Mon, Jul 27, 2015 at 04:29:19PM -0700, Yinghai Lu wrote:
>> Now get_res_add_size and get_res_add_align all have same printout
>> from res_to_dev_res(), and it is confusing.
>>
>> Move out debug messages printout from res_to_dev_res(),
>> and later we will reuse res_to_dev_res() in other functions.
>>
>> Signed-off-by: Yinghai Lu <yinghai@kernel.org>
>> ---
>> drivers/pci/setup-bus.c | 34 ++++++++++++++++++++--------------
>> 1 file changed, 20 insertions(+), 14 deletions(-)
>>
>> diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c
>> index 508cc56..f0fa705 100644
>> --- a/drivers/pci/setup-bus.c
>> +++ b/drivers/pci/setup-bus.c
>> @@ -104,19 +104,9 @@ static struct pci_dev_resource *res_to_dev_res(struct list_head *head,
>> {
>> struct pci_dev_resource *dev_res;
>>
>> - list_for_each_entry(dev_res, head, list) {
>> - if (dev_res->res == res) {
>> - int idx = res - &dev_res->dev->resource[0];
>> -
>> - dev_printk(KERN_DEBUG, &dev_res->dev->dev,
>> - "res[%d]=%pR res_to_dev_res add_size %llx min_align %llx\n",
>> - idx, dev_res->res,
>> - (unsigned long long)dev_res->add_size,
>> - (unsigned long long)dev_res->min_align);
>> -...
>> +
>> + dev_printk(KERN_DEBUG, &dev_res->dev->dev,
>> + "BAR %d: %pR get_res_add_align min_align %llx\n",
>> + (int)(res - &dev_res->dev->resource[0]),
>> + res, (unsigned long long)dev_res->min_align);
>
> Please use %#llx so we have a "0x" prefix like other hex numbers.
>
ok.
Later i'd like to just kill those debug printout if all get settled
after this patchset.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH v3 01/51] PCI: Cleanup res_to_dev_res() printout for addon resources Bjorn Helgaas <bhelgaas@google.com> - 2015-08-18 01:00 +0200 Re: [PATCH v3 01/51] PCI: Cleanup res_to_dev_res() printout for addon resources Yinghai Lu <yinghai@kernel.org> - 2015-08-18 23:20 +0200
csiph-web