ia64/xen-unstable

changeset 14712:5d9ab2d06709

[IA64] Fix typo in xen/arch/ia64/linux-xen/perfmon.c

Fix disunity of error messages and typo in perfmon.c.

Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
author Alex Williamson <alex.williamson@hp.com>
date Thu Apr 05 09:30:26 2007 -0600 (2007-04-05)
parents 81ba9d2267cb
children 9ec7dadc98ba
files xen/arch/ia64/linux-xen/perfmon.c
line diff
     1.1 --- a/xen/arch/ia64/linux-xen/perfmon.c	Thu Apr 05 09:26:54 2007 -0600
     1.2 +++ b/xen/arch/ia64/linux-xen/perfmon.c	Thu Apr 05 09:30:26 2007 -0600
     1.3 @@ -7471,8 +7471,8 @@ xenpfm_context_load(XEN_GUEST_HANDLE(pfa
     1.4  	spin_unlock(&xenpfm_context_lock);
     1.5  	for_each_online_cpu(cpu) {
     1.6  		if (arg.error[cpu]) {
     1.7 -			gdprintk(XENLOG_INFO, "%s: error %d cpu %d\n",
     1.8 -				 __func__, error, cpu);
     1.9 +			gdprintk(XENLOG_INFO, "%s: cpu %d error %d\n",
    1.10 +				 __func__, cpu, arg.error[cpu]);
    1.11  			error = arg.error[cpu];
    1.12  		}
    1.13  	}
    1.14 @@ -7518,8 +7518,8 @@ xenpfm_context_unload(void)
    1.15  	spin_unlock(&xenpfm_context_lock);
    1.16  	for_each_online_cpu(cpu) {
    1.17  		if (arg.error[cpu]) {
    1.18 -			gdprintk(XENLOG_INFO, "%s: error %d cpu %d\n",
    1.19 -				 __func__, error, cpu);
    1.20 +			gdprintk(XENLOG_INFO, "%s: cpu %d error %d\n",
    1.21 +				 __func__, cpu, arg.error[cpu]);
    1.22  			error = arg.error[cpu];
    1.23  		}
    1.24  	}
    1.25 @@ -7699,7 +7699,7 @@ xenpfm_start_stop_locked(int is_start)
    1.26  	local_irq_restore(flags);
    1.27  
    1.28  	for_each_online_cpu(cpu) {
    1.29 -		if (!arg.error[cpu]) {
    1.30 +		if (arg.error[cpu]) {
    1.31  			gdprintk(XENLOG_INFO, "%s: cpu %d error %d\n", 
    1.32  				__func__, cpu, arg.error[cpu]);
    1.33  			error = arg.error[cpu];