Re: [PATCH 05/21] amd_iommu.c: use pr_<level> and add pr_fmt(fmt)

From: Joe Perches
Date: Mon Oct 12 2009 - 13:02:08 EST


On Mon, 2009-10-12 at 17:00 +0200, Joerg Roedel wrote:
> On Sun, Oct 04, 2009 at 05:53:32PM -0700, Joe Perches wrote:
> > Added #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
> > Converted a few bare printks to pr_cont
> > Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
> > ---
> > arch/x86/kernel/amd_iommu.c | 71 ++++++++++++++++++++++--------------------
> > 1 files changed, 37 insertions(+), 34 deletions(-)
> Applied to amd-iommu/cleanups. Thanks Joe.

Hi Jeorg:

Looking back at the original patch:

> default:
> - printk(KERN_ERR "UNKNOWN type=0x%02x]\n", type);
> + pr_cont("\n");
> + pr_err("UNKNOWN type=0x%02x]\n", type);

The default case probably had an incorrect KERN_ERR and should be

pr_cont("UNKNOWN type=0x%02x]\n", type);

cheers, Joe

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/