All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Joe Perches <joe@perches.com>
Cc: Muli Ben-Yehuda <muli@il.ibm.com>,
	Len Brown <len.brown@intel.com>, Jiri Kosina <trivial@kernel.org>,
	Peter Zijlstra <a.p.zijlstra@chello.nl>,
	discuss@x86-64.org, x86@kernel.org, linux-kernel@vger.kernel.org,
	Arnaldo Carvalho de Melo <acme@redhat.com>,
	Ingo Molnar <mingo@redhat.com>, Paul Mackerras <paulus@samba.org>,
	"H. Peter Anvin" <hpa@zytor.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	"Jon D. Mason" <jdmason@kudzu.us>,
	linux-pm@lists.linux-foundation.org
Subject: Re: [PATCH 05/39] arch/x86: Update WARN uses
Date: Sun, 31 Oct 2010 02:38:24 +0100	[thread overview]
Message-ID: <201010310238.25137.rjw__35551.4276227497$1288489256$gmane$org@sisk.pl> (raw)
In-Reply-To: <9c86643277c2e832de6d97fb79be5e30b5fe2e48.1288471898.git.joe@perches.com>

On Saturday, October 30, 2010, Joe Perches wrote:
> Coalesce long formats.
> Align arguments.
> Add missing newlines.
> Remove KERN_<level>.

I don't have objections.

Rafael


> Signed-off-by: Joe Perches <joe@perches.com>
> ---
>  arch/x86/kernel/acpi/boot.c      |    2 +-
>  arch/x86/kernel/apic/apic.c      |    2 +-
>  arch/x86/kernel/apic/es7000_32.c |    2 +-
>  arch/x86/kernel/cpu/perf_event.c |    4 ++--
>  arch/x86/kernel/pci-calgary_64.c |    4 ++--
>  arch/x86/kernel/tsc_sync.c       |    4 ++--
>  arch/x86/kernel/xsave.c          |    2 +-
>  arch/x86/mm/ioremap.c            |    5 ++---
>  arch/x86/mm/pageattr-test.c      |    2 +-
>  arch/x86/mm/pageattr.c           |    5 ++---
>  arch/x86/platform/sfi/sfi.c      |    4 ++--
>  11 files changed, 17 insertions(+), 19 deletions(-)
> 
> diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c
> index 71232b9..e005970 100644
> --- a/arch/x86/kernel/acpi/boot.c
> +++ b/arch/x86/kernel/acpi/boot.c
> @@ -1368,7 +1368,7 @@ static int __init dmi_ignore_irq0_timer_override(const struct dmi_system_id *d)
>  	 * the acpi_skip_timer_override flag already:
>  	 */
>  	if (!acpi_skip_timer_override) {
> -		WARN(1, KERN_ERR "ati_ixp4x0 quirk not complete.\n");
> +		WARN(1, "ati_ixp4x0 quirk not complete\n");
>  		pr_notice("%s detected: Ignoring BIOS IRQ0 pin2 override\n",
>  			d->ident);
>  		acpi_skip_timer_override = 1;
> diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
> index 850657d..86d8a50 100644
> --- a/arch/x86/kernel/apic/apic.c
> +++ b/arch/x86/kernel/apic/apic.c
> @@ -2079,7 +2079,7 @@ static int lapic_resume(struct sys_device *dev)
>  	if (intr_remapping_enabled) {
>  		ioapic_entries = alloc_ioapic_entries();
>  		if (!ioapic_entries) {
> -			WARN(1, "Alloc ioapic_entries in lapic resume failed.");
> +			WARN(1, "Alloc ioapic_entries in lapic resume failed\n");
>  			ret = -ENOMEM;
>  			goto restore;
>  		}
> diff --git a/arch/x86/kernel/apic/es7000_32.c b/arch/x86/kernel/apic/es7000_32.c
> index 8593582..a30bc9b 100644
> --- a/arch/x86/kernel/apic/es7000_32.c
> +++ b/arch/x86/kernel/apic/es7000_32.c
> @@ -564,7 +564,7 @@ static unsigned int es7000_cpu_mask_to_apicid(const struct cpumask *cpumask)
>  		int new_apicid = es7000_cpu_to_logical_apicid(cpu);
>  
>  		if (round && APIC_CLUSTER(apicid) != APIC_CLUSTER(new_apicid)) {
> -			WARN(1, "Not a valid mask!");
> +			WARN(1, "Not a valid mask!\n");
>  
>  			return BAD_APICID;
>  		}
> diff --git a/arch/x86/kernel/cpu/perf_event.c b/arch/x86/kernel/cpu/perf_event.c
> index ed63101..564444d 100644
> --- a/arch/x86/kernel/cpu/perf_event.c
> +++ b/arch/x86/kernel/cpu/perf_event.c
> @@ -1378,14 +1378,14 @@ void __init init_hw_perf_events(void)
>  		x86_pmu.quirks();
>  
>  	if (x86_pmu.num_counters > X86_PMC_MAX_GENERIC) {
> -		WARN(1, KERN_ERR "hw perf events %d > max(%d), clipping!",
> +		WARN(1, "hw perf events %d > max(%d), clipping!\n",
>  		     x86_pmu.num_counters, X86_PMC_MAX_GENERIC);
>  		x86_pmu.num_counters = X86_PMC_MAX_GENERIC;
>  	}
>  	x86_pmu.intel_ctrl = (1 << x86_pmu.num_counters) - 1;
>  
>  	if (x86_pmu.num_counters_fixed > X86_PMC_MAX_FIXED) {
> -		WARN(1, KERN_ERR "hw perf events fixed %d > max(%d), clipping!",
> +		WARN(1, "hw perf events fixed %d > max(%d), clipping!\n",
>  		     x86_pmu.num_counters_fixed, X86_PMC_MAX_FIXED);
>  		x86_pmu.num_counters_fixed = X86_PMC_MAX_FIXED;
>  	}
> diff --git a/arch/x86/kernel/pci-calgary_64.c b/arch/x86/kernel/pci-calgary_64.c
> index f56a117..f179747 100644
> --- a/arch/x86/kernel/pci-calgary_64.c
> +++ b/arch/x86/kernel/pci-calgary_64.c
> @@ -296,8 +296,8 @@ static void iommu_free(struct iommu_table *tbl, dma_addr_t dma_addr,
>  	/* were we called with bad_dma_address? */
>  	badend = DMA_ERROR_CODE + (EMERGENCY_PAGES * PAGE_SIZE);
>  	if (unlikely((dma_addr >= DMA_ERROR_CODE) && (dma_addr < badend))) {
> -		WARN(1, KERN_ERR "Calgary: driver tried unmapping bad DMA "
> -		       "address 0x%Lx\n", dma_addr);
> +		WARN(1, "Calgary: driver tried unmapping bad DMA address 0x%llx\n",
> +		     dma_addr);
>  		return;
>  	}
>  
> diff --git a/arch/x86/kernel/tsc_sync.c b/arch/x86/kernel/tsc_sync.c
> index 0aa5fed8..cf11d51 100644
> --- a/arch/x86/kernel/tsc_sync.c
> +++ b/arch/x86/kernel/tsc_sync.c
> @@ -94,8 +94,8 @@ static __cpuinit void check_tsc_warp(void)
>  		}
>  	}
>  	WARN(!(now-start),
> -		"Warning: zero tsc calibration delta: %Ld [max: %Ld]\n",
> -			now-start, end-start);
> +	     "Warning: zero tsc calibration delta: %lld [max: %lld]\n",
> +	     now-start, end-start);
>  }
>  
>  /*
> diff --git a/arch/x86/kernel/xsave.c b/arch/x86/kernel/xsave.c
> index 9c253bd..b499aa8 100644
> --- a/arch/x86/kernel/xsave.c
> +++ b/arch/x86/kernel/xsave.c
> @@ -418,7 +418,7 @@ static void __init xstate_enable_boot_cpu(void)
>  	unsigned int eax, ebx, ecx, edx;
>  
>  	if (boot_cpu_data.cpuid_level < XSTATE_CPUID) {
> -		WARN(1, KERN_ERR "XSTATE_CPUID missing\n");
> +		WARN(1, "XSTATE_CPUID missing\n");
>  		return;
>  	}
>  
> diff --git a/arch/x86/mm/ioremap.c b/arch/x86/mm/ioremap.c
> index 0369843..841ae72 100644
> --- a/arch/x86/mm/ioremap.c
> +++ b/arch/x86/mm/ioremap.c
> @@ -476,9 +476,8 @@ static int __init check_early_ioremap_leak(void)
>  
>  	if (!count)
>  		return 0;
> -	WARN(1, KERN_WARNING
> -	       "Debug warning: early ioremap leak of %d areas detected.\n",
> -		count);
> +	WARN(1, "Debug warning: early ioremap leak of %d areas detected\n",
> +	     count);
>  	printk(KERN_WARNING
>  		"please boot with early_ioremap_debug and report the dmesg.\n");
>  
> diff --git a/arch/x86/mm/pageattr-test.c b/arch/x86/mm/pageattr-test.c
> index e1d1069..15d3536 100644
> --- a/arch/x86/mm/pageattr-test.c
> +++ b/arch/x86/mm/pageattr-test.c
> @@ -224,7 +224,7 @@ static int pageattr_test(void)
>  	failed += print_split(&sc);
>  
>  	if (failed) {
> -		WARN(1, KERN_ERR "NOT PASSED. Please report.\n");
> +		WARN(1, "NOT PASSED. Please report.\n");
>  		return -EINVAL;
>  	} else {
>  		if (print)
> diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c
> index 532e793..0c97354 100644
> --- a/arch/x86/mm/pageattr.c
> +++ b/arch/x86/mm/pageattr.c
> @@ -615,9 +615,8 @@ static int __cpa_process_fault(struct cpa_data *cpa, unsigned long vaddr,
>  		cpa->pfn = __pa(vaddr) >> PAGE_SHIFT;
>  		return 0;
>  	} else {
> -		WARN(1, KERN_WARNING "CPA: called for zero pte. "
> -			"vaddr = %lx cpa->vaddr = %lx\n", vaddr,
> -			*cpa->vaddr);
> +		WARN(1, "CPA: called for zero pte. vaddr = %lx cpa->vaddr = %lx\n",
> +		     vaddr, *cpa->vaddr);
>  
>  		return -EFAULT;
>  	}
> diff --git a/arch/x86/platform/sfi/sfi.c b/arch/x86/platform/sfi/sfi.c
> index dd4c281..f66fabc 100644
> --- a/arch/x86/platform/sfi/sfi.c
> +++ b/arch/x86/platform/sfi/sfi.c
> @@ -97,8 +97,8 @@ static int __init sfi_parse_ioapic(struct sfi_table_header *table)
>  		pentry++;
>  	}
>  
> -	WARN(pic_mode, KERN_WARNING
> -		"SFI: pic_mod shouldn't be 1 when IOAPIC table is present\n");
> +	WARN(pic_mode,
> +	     "SFI: pic_mod shouldn't be 1 when IOAPIC table is present\n");
>  	pic_mode = 0;
>  	return 0;
>  }
> 

  reply	other threads:[~2010-10-31  1:38 UTC|newest]

Thread overview: 86+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-30 21:08 [PATCH 00/39] Cleanup WARN #defines Joe Perches
2010-10-30 21:08 ` Joe Perches
2010-10-30 21:08 ` Joe Perches
2010-10-30 21:08 ` Joe Perches
2010-10-30 21:08 ` Joe Perches
2010-10-30 21:08 ` [PATCH 01/39] include/asm-generic/bug.h: Update WARN macros Joe Perches
2010-10-30 21:08 ` [PATCH 02/39] arch/alpha: Update WARN uses Joe Perches
2010-10-30 21:17   ` Matt Turner
2010-10-30 21:28     ` Joe Perches
2010-10-31  1:11       ` Michael Cree
2010-10-31  1:38         ` Joe Perches
2010-10-30 21:08 ` [PATCH 03/39] arch/arm: " Joe Perches
2010-10-30 21:08   ` Joe Perches
2010-10-30 21:08   ` Joe Perches
2010-10-30 21:08 ` [PATCH 04/39] arch/powerpc: " Joe Perches
2010-10-30 21:08   ` Joe Perches
2010-11-01 11:02   ` Michael Ellerman
2010-11-01 11:02     ` Michael Ellerman
2010-11-01 14:41     ` Joe Perches
2010-11-01 14:41       ` Joe Perches
2010-11-02  0:26       ` Michael Ellerman
2010-11-02  0:26         ` Michael Ellerman
2010-11-02  1:50         ` Joe Perches
2010-11-02  1:50           ` Joe Perches
2010-11-02  3:20           ` Michael Ellerman
2010-11-02  3:20             ` Michael Ellerman
2010-10-30 21:08 ` [PATCH 05/39] arch/x86: " Joe Perches
2010-10-30 21:08   ` Joe Perches
2010-10-31  1:38   ` Rafael J. Wysocki [this message]
2010-10-31  1:38   ` Rafael J. Wysocki
2010-10-30 21:08 ` [PATCH 06/39] drivers/acpi: " Joe Perches
2010-10-30 21:08 ` [PATCH 07/39] drivers/base: " Joe Perches
2010-10-30 21:08 ` [PATCH 08/39] drivers/block: " Joe Perches
2010-10-30 21:08 ` [PATCH 09/39] drivers/cpuidle: " Joe Perches
2010-10-30 21:08 ` [PATCH 10/39] drivers/firewire: " Joe Perches
2010-10-30 21:57   ` Stefan Richter
2010-10-30 21:08 ` [PATCH 11/39] drivers/firmware: " Joe Perches
2010-10-30 21:08 ` [PATCH 12/39] drivers/gpio: " Joe Perches
2010-10-30 21:08 ` [PATCH 13/39] drivers/gpu/drm: " Joe Perches
2010-10-30 21:08   ` Joe Perches
2010-10-30 21:08 ` [PATCH 14/39] drivers/media/video: " Joe Perches
2010-10-30 21:08   ` Joe Perches
2010-10-30 21:08 ` [PATCH 15/39] drivers/mfd: " Joe Perches
2010-11-26 10:02   ` Samuel Ortiz
2010-10-30 21:08 ` [PATCH 16/39] drivers/net/can: " Joe Perches
2010-11-09 17:23   ` David Miller
2010-11-09 17:23     ` David Miller
2010-10-30 21:08 ` [PATCH 17/39] drivers/net/usb: " Joe Perches
2010-11-09 17:23   ` David Miller
2010-10-30 21:08 ` [PATCH 18/39] drivers/net/wireless/iwlwifi: " Joe Perches
2010-10-30 21:08 ` [PATCH 19/39] drivers/regulator: " Joe Perches
2010-11-01 13:25   ` Mark Brown
2010-10-30 21:08 ` [PATCH 20/39] drivers/scsi/fcoe: " Joe Perches
2010-10-30 21:08 ` [PATCH 21/39] drivers/staging: " Joe Perches
2010-11-09 23:50   ` Greg KH
2010-10-30 21:08 ` [PATCH 22/39] drivers/usb/musb: " Joe Perches
2010-11-05 11:44   ` Felipe Balbi
2010-11-05 13:54     ` Jiri Kosina
2010-11-05 13:56       ` Felipe Balbi
2010-10-30 21:08 ` [PATCH 23/39] drivers/video/omap2/dss: " Joe Perches
2010-10-30 21:08   ` Joe Perches
2010-10-30 21:08 ` [PATCH 24/39] fs/nfsd: " Joe Perches
2010-10-30 21:08 ` [PATCH 25/39] fs/notify/inotify: " Joe Perches
2010-10-30 21:08 ` [PATCH 26/39] fs/sysfs: " Joe Perches
2010-10-30 21:08 ` [PATCH 27/39] fs/proc: " Joe Perches
2010-10-30 21:08 ` [PATCH 28/39] fs: " Joe Perches
2010-10-30 21:08 ` [PATCH 29/39] include/linux/device.h: " Joe Perches
2010-10-30 21:08 ` [PATCH 30/39] kernel/irq: " Joe Perches
2010-10-30 21:08 ` [PATCH 31/39] kernel/panic.c: Update warn_slowpath to use %pV Joe Perches
2010-10-30 21:08 ` [PATCH 32/39] kernel: Update WARN uses Joe Perches
2010-10-30 21:08 ` [PATCH 33/39] lib: " Joe Perches
2010-10-30 21:08 ` [PATCH 34/39] mm: " Joe Perches
2010-10-30 21:08   ` Joe Perches
2010-11-08 12:03   ` Michał Nazarewicz
2010-11-08 12:03     ` Michał Nazarewicz
2010-10-30 21:08 ` [PATCH 35/39] net/core/dev.c: " Joe Perches
2010-11-09 17:23   ` David Miller
2010-10-30 21:08 ` [PATCH 36/39] net/ipv4/tcp.c: " Joe Perches
2010-11-09 17:23   ` David Miller
2010-10-30 21:08 ` [PATCH 37/39] net/mac80211: " Joe Perches
2010-10-30 21:08   ` Joe Perches
2010-10-31  7:33   ` Johannes Berg
2010-10-30 21:08 ` [PATCH 38/39] net/rfkill/input.c: " Joe Perches
2010-10-30 21:08 ` [PATCH 39/39] sound/soc/codecs/wm_hubs.c: " Joe Perches
2010-11-01 19:47   ` Mark Brown
2010-11-01 19:47     ` Mark Brown

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='201010310238.25137.rjw__35551.4276227497$1288489256$gmane$org@sisk.pl' \
    --to=rjw@sisk.pl \
    --cc=a.p.zijlstra@chello.nl \
    --cc=acme@redhat.com \
    --cc=discuss@x86-64.org \
    --cc=hpa@zytor.com \
    --cc=jdmason@kudzu.us \
    --cc=joe@perches.com \
    --cc=len.brown@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=mingo@redhat.com \
    --cc=muli@il.ibm.com \
    --cc=paulus@samba.org \
    --cc=tglx@linutronix.de \
    --cc=trivial@kernel.org \
    --cc=x86@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.