From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Hisch Date: Fri, 09 Feb 2007 22:15:21 +0000 Subject: [KJ] [PATCH] format specifier for the cpu number -> %u Message-Id: <20070209221521.GA3026@unknown-00-0d-60-79-ca-00.lan> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kernel-janitors@vger.kernel.org changed format specifier for the cpu number in printk to %u in arch/i386/kernel/cpu/mcheck/* Signed-off-by: Thomas Hisch --- this is only a part of my cpu to unsigned int patch, which i think should be ok imho the CPU#%u format in printk's is the best for cpu numbers, so this format should be the default in the whole kernel thoughts ? arch/i386/kernel/cpu/mcheck/k7.c | 4 ++-- arch/i386/kernel/cpu/mcheck/mce.c | 2 +- arch/i386/kernel/cpu/mcheck/non-fatal.c | 2 +- arch/i386/kernel/cpu/mcheck/p4.c | 16 ++++++++-------- arch/i386/kernel/cpu/mcheck/p5.c | 6 +++--- arch/i386/kernel/cpu/mcheck/p6.c | 4 ++-- arch/i386/kernel/cpu/mcheck/therm_throt.c | 4 ++-- arch/i386/kernel/cpu/mcheck/winchip.c | 2 +- 8 files changed, 20 insertions(+), 20 deletions(-) diff --git a/arch/i386/kernel/cpu/mcheck/k7.c b/arch/i386/kernel/cpu/mcheck/k7.c index b0862af..b1580a2 100644 --- a/arch/i386/kernel/cpu/mcheck/k7.c +++ b/arch/i386/kernel/cpu/mcheck/k7.c @@ -27,7 +27,7 @@ static fastcall void k7_machine_check(struct pt_regs * regs, long error_code) if (mcgstl & (1<<0)) /* Recoverable ? */ recover=0; - printk (KERN_EMERG "CPU %d: Machine Check Exception: %08x%08x\n", + printk (KERN_EMERG "CPU#%u: Machine Check Exception: %08x%08x\n", smp_processor_id(), mcgsth, mcgstl); for (i=1; i> 16) & 0xff; - printk (KERN_INFO "CPU%d: Intel P4/Xeon Extended MCE MSRs (%d)" + printk (KERN_INFO "CPU%u: Intel P4/Xeon Extended MCE MSRs (%d)" " available\n", smp_processor_id(), mce_num_extended_msrs); diff --git a/arch/i386/kernel/cpu/mcheck/p5.c b/arch/i386/kernel/cpu/mcheck/p5.c index 94bc43d..a8d1d32 100644 --- a/arch/i386/kernel/cpu/mcheck/p5.c +++ b/arch/i386/kernel/cpu/mcheck/p5.c @@ -21,9 +21,9 @@ static fastcall void pentium_machine_check(struct pt_regs * regs, long error_cod u32 loaddr, hi, lotype; rdmsr(MSR_IA32_P5_MC_ADDR, loaddr, hi); rdmsr(MSR_IA32_P5_MC_TYPE, lotype, hi); - printk(KERN_EMERG "CPU#%d: Machine Check Exception: 0x%8X (type 0x%8X).\n", smp_processor_id(), loaddr, lotype); + printk(KERN_EMERG "CPU#%u: Machine Check Exception: 0x%8X (type 0x%8X).\n", smp_processor_id(), loaddr, lotype); if(lotype&(1<<5)) - printk(KERN_EMERG "CPU#%d: Possible thermal failure (CPU on fire ?).\n", smp_processor_id()); + printk(KERN_EMERG "CPU#%u: Possible thermal failure (CPU on fire ?).\n", smp_processor_id()); add_taint(TAINT_MACHINE_CHECK); } @@ -49,5 +49,5 @@ void intel_p5_mcheck_init(struct cpuinfo_x86 *c) /* Enable MCE */ set_in_cr4(X86_CR4_MCE); - printk(KERN_INFO "Intel old style machine check reporting enabled on CPU#%d.\n", smp_processor_id()); + printk(KERN_INFO "Intel old style machine check reporting enabled on CPU#%u.\n", smp_processor_id()); } diff --git a/arch/i386/kernel/cpu/mcheck/p6.c b/arch/i386/kernel/cpu/mcheck/p6.c index deeae42..fab59b4 100644 --- a/arch/i386/kernel/cpu/mcheck/p6.c +++ b/arch/i386/kernel/cpu/mcheck/p6.c @@ -27,7 +27,7 @@ static fastcall void intel_machine_check(struct pt_regs * regs, long error_code) if (mcgstl & (1<<0)) /* Recoverable ? */ recover=0; - printk (KERN_EMERG "CPU %d: Machine Check Exception: %08x%08x\n", + printk (KERN_EMERG "CPU#%u: Machine Check Exception: %08x%08x\n", smp_processor_id(), mcgsth, mcgstl); for (i=0; i