]> xenbits.xensource.com Git - xen.git/commitdiff
[IA64] Fix typo in xen/arch/ia64/linux-xen/perfmon.c
authorAlex Williamson <alex.williamson@hp.com>
Thu, 5 Apr 2007 15:30:26 +0000 (09:30 -0600)
committerAlex Williamson <alex.williamson@hp.com>
Thu, 5 Apr 2007 15:30:26 +0000 (09:30 -0600)
Fix disunity of error messages and typo in perfmon.c.

Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
xen/arch/ia64/linux-xen/perfmon.c

index 9400c7decf66705a8dbdc66cc824a4e8e5c8f3fe..778f293e71cda2d9e97e2ec0ea1127587b8341eb 100644 (file)
@@ -7471,8 +7471,8 @@ xenpfm_context_load(XEN_GUEST_HANDLE(pfarg_load_t) req)
        spin_unlock(&xenpfm_context_lock);
        for_each_online_cpu(cpu) {
                if (arg.error[cpu]) {
-                       gdprintk(XENLOG_INFO, "%s: error %d cpu %d\n",
-                                __func__, error, cpu);
+                       gdprintk(XENLOG_INFO, "%s: cpu %d error %d\n",
+                                __func__, cpu, arg.error[cpu]);
                        error = arg.error[cpu];
                }
        }
@@ -7518,8 +7518,8 @@ xenpfm_context_unload(void)
        spin_unlock(&xenpfm_context_lock);
        for_each_online_cpu(cpu) {
                if (arg.error[cpu]) {
-                       gdprintk(XENLOG_INFO, "%s: error %d cpu %d\n",
-                                __func__, error, cpu);
+                       gdprintk(XENLOG_INFO, "%s: cpu %d error %d\n",
+                                __func__, cpu, arg.error[cpu]);
                        error = arg.error[cpu];
                }
        }
@@ -7699,7 +7699,7 @@ xenpfm_start_stop_locked(int is_start)
        local_irq_restore(flags);
 
        for_each_online_cpu(cpu) {
-               if (!arg.error[cpu]) {
+               if (arg.error[cpu]) {
                        gdprintk(XENLOG_INFO, "%s: cpu %d error %d\n", 
                                __func__, cpu, arg.error[cpu]);
                        error = arg.error[cpu];