All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bjorn Helgaas <bhelgaas@google.com>
To: Joe Perches <joe@perches.com>
Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 11/16] pci: Convert dev_printk(KERN_<LEVEL> to dev_<level>(
Date: Mon, 5 Nov 2012 15:28:19 -0700	[thread overview]
Message-ID: <CAErSpo4x14+88TNjC2kji35G8TYoJJK0Oz-4oyTa9kVRRem5QQ@mail.gmail.com> (raw)
In-Reply-To: <58d59961e0f3287afeda402e123e5d760471b0d9.1351411048.git.joe@perches.com>

On Sun, Oct 28, 2012 at 2:05 AM, Joe Perches <joe@perches.com> wrote:
> dev_<level> calls take less code than dev_printk(KERN_<LEVEL>
> and reducing object size is good.
> Coalesce formats for easier grep.
>
> Signed-off-by: Joe Perches <joe@perches.com>

I applied this to my pci/misc branch as v3.8 material.  Thanks!

> ---
>  drivers/pci/irq.c       |   10 +++++-----
>  drivers/pci/pci-stub.c  |    2 +-
>  drivers/pci/pcie/aspm.c |    7 ++-----
>  3 files changed, 8 insertions(+), 11 deletions(-)
>
> diff --git a/drivers/pci/irq.c b/drivers/pci/irq.c
> index e5f69a4..b008cf8 100644
> --- a/drivers/pci/irq.c
> +++ b/drivers/pci/irq.c
> @@ -14,11 +14,11 @@ static void pci_note_irq_problem(struct pci_dev *pdev, const char *reason)
>  {
>         struct pci_dev *parent = to_pci_dev(pdev->dev.parent);
>
> -       dev_printk(KERN_ERR, &pdev->dev,
> -                  "Potentially misrouted IRQ (Bridge %s %04x:%04x)\n",
> -                  dev_name(&parent->dev), parent->vendor, parent->device);
> -       dev_printk(KERN_ERR, &pdev->dev, "%s\n", reason);
> -       dev_printk(KERN_ERR, &pdev->dev, "Please report to linux-kernel@vger.kernel.org\n");
> +       dev_err(&pdev->dev,
> +               "Potentially misrouted IRQ (Bridge %s %04x:%04x)\n",
> +               dev_name(&parent->dev), parent->vendor, parent->device);
> +       dev_err(&pdev->dev, "%s\n", reason);
> +       dev_err(&pdev->dev, "Please report to linux-kernel@vger.kernel.org\n");
>         WARN_ON(1);
>  }
>
> diff --git a/drivers/pci/pci-stub.c b/drivers/pci/pci-stub.c
> index 775e933..6e47c51 100644
> --- a/drivers/pci/pci-stub.c
> +++ b/drivers/pci/pci-stub.c
> @@ -28,7 +28,7 @@ MODULE_PARM_DESC(ids, "Initial PCI IDs to add to the stub driver, format is "
>
>  static int pci_stub_probe(struct pci_dev *dev, const struct pci_device_id *id)
>  {
> -       dev_printk(KERN_INFO, &dev->dev, "claimed by stub\n");
> +       dev_info(&dev->dev, "claimed by stub\n");
>         return 0;
>  }
>
> diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c
> index 213753b..3da9ecc 100644
> --- a/drivers/pci/pcie/aspm.c
> +++ b/drivers/pci/pcie/aspm.c
> @@ -242,8 +242,7 @@ static void pcie_aspm_configure_common_clock(struct pcie_link_state *link)
>                 return;
>
>         /* Training failed. Restore common clock configurations */
> -       dev_printk(KERN_ERR, &parent->dev,
> -                  "ASPM: Could not configure common clock\n");
> +       dev_err(&parent->dev, "ASPM: Could not configure common clock\n");
>         list_for_each_entry(child, &linkbus->devices, bus_list)
>                 pcie_capability_write_word(child, PCI_EXP_LNKCTL,
>                                            child_reg[PCI_FUNC(child->devfn)]);
> @@ -507,9 +506,7 @@ static int pcie_aspm_sanity_check(struct pci_dev *pdev)
>                  */
>                 pcie_capability_read_dword(child, PCI_EXP_DEVCAP, &reg32);
>                 if (!(reg32 & PCI_EXP_DEVCAP_RBER) && !aspm_force) {
> -                       dev_printk(KERN_INFO, &child->dev, "disabling ASPM"
> -                               " on pre-1.1 PCIe device.  You can enable it"
> -                               " with 'pcie_aspm=force'\n");
> +                       dev_info(&child->dev, "disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'\n");
>                         return -EINVAL;
>                 }
>         }
> --
> 1.7.8.112.g3fd21
>

  reply	other threads:[~2012-11-05 22:28 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-28  8:05 [PATCH 00/16] treewide: Convert dev_printk(KERN_<LEVEL> to dev_<level>( Joe Perches
2012-10-28  8:05 ` Joe Perches
2012-10-28  8:05 ` Joe Perches
2012-10-28  8:05 ` [PATCH 01/16] tile: " Joe Perches
2012-10-28 12:54   ` Chris Metcalf
2012-10-28  8:05 ` [PATCH 02/16] ata: " Joe Perches
2012-11-28 17:42   ` Jeff Garzik
2012-10-28  8:05 ` [PATCH 03/16] drivers: base: " Joe Perches
2012-10-28  8:05 ` [PATCH 04/16] block: " Joe Perches
2012-10-28  8:05 ` [PATCH 05/16] pcmcia: " Joe Perches
2012-10-28  8:05 ` [PATCH 06/16] dma: " Joe Perches
2012-10-28  8:05   ` Joe Perches
2012-10-29  5:54   ` Vinod Koul
2012-10-29  5:54     ` Vinod Koul
2012-10-28  8:05 ` [PATCH 07/16] gpu: " Joe Perches
2012-10-28  8:05 ` [PATCH 08/16] i2c: " Joe Perches
2012-10-28 11:45   ` Jean Delvare
2012-10-28  8:05 ` [PATCH 09/16] wireless: " Joe Perches
2012-10-28  8:05 ` [PATCH 10/16] ethernet: " Joe Perches
2012-11-03  2:00   ` David Miller
2012-10-28  8:05 ` [PATCH 11/16] pci: " Joe Perches
2012-11-05 22:28   ` Bjorn Helgaas [this message]
2012-10-28  8:05 ` [PATCH 12/16] scsi: " Joe Perches
2012-10-28  8:05 ` [PATCH 13/16] usb: " Joe Perches
2012-10-28  8:05 ` [PATCH 14/16] virtio: " Joe Perches
2012-10-28  8:05   ` Joe Perches
2012-10-31 23:54   ` Rusty Russell
2012-10-31 23:54     ` Rusty Russell
2012-10-28  8:05 ` [PATCH 15/16] watchdog: " Joe Perches
2012-10-28  8:05 ` [PATCH 16/16] sound: " Joe Perches
2012-10-28  8:05   ` Joe Perches
2012-10-28  8:59   ` Takashi Iwai
2012-10-28 10:54 ` [PATCH 00/16] treewide: " Sergei Shtylyov
2012-10-28 10:54 ` Sergei Shtylyov
2012-10-28 10:54   ` Sergei Shtylyov
2012-10-28 10:54   ` Sergei Shtylyov
2012-10-28 12:12   ` Joe Perches
2012-10-28 12:12   ` Joe Perches
2012-10-28 12:12     ` Joe Perches
2012-10-28 12:12     ` Joe Perches

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAErSpo4x14+88TNjC2kji35G8TYoJJK0Oz-4oyTa9kVRRem5QQ@mail.gmail.com \
    --to=bhelgaas@google.com \
    --cc=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.