[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1397592405.8998.6.camel@joe-AO722>
Date: Tue, 15 Apr 2014 13:06:45 -0700
From: Joe Perches <joe@...ches.com>
To: Fabian Frederick <fabf@...net.be>
Cc: linux-kernel <linux-kernel@...r.kernel.org>,
Bjorn <bhelgaas@...gle.com>, akpm <akpm@...ux-foundation.org>
Subject: Re: [PATCH 1/1] Drivers/PCI: Logging clean-up [1]
On Tue, 2014-04-15 at 20:55 +0200, Fabian Frederick wrote:
> diff --git a/drivers/pci/pci-stub.c b/drivers/pci/pci-stub.c
[]
> @@ -15,7 +15,7 @@
> * # ls -l /sys/bus/pci/devices/0000:00:19.0/driver
> * .../0000:00:19.0/driver -> ../../../bus/pci/drivers/pci-stub
> */
> -
> +#define pr_fmt(fmt) "pci-stub: " fmt
When the output prefix matches the module/filename, please use
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
[]
> diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c
[]
> @@ -903,8 +903,8 @@ legacy_io_err:
> kfree(b->legacy_io);
> b->legacy_io = NULL;
> kzalloc_err:
> - printk(KERN_WARNING "pci: warning: could not create legacy I/O port "
> - "and ISA memory resources to sysfs\n");
> + pr_warn("warning: could not create legacy I/O port "
> + "and ISA memory resources to sysfs\n");
Please coalesce format fragments too even if the format part
exceeds 80 columns.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists