WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

[Xen-ia64-devel] [PATCH] Fix typo in xen/arch/ia64/linux-xen/perfmon.c

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [PATCH] Fix typo in xen/arch/ia64/linux-xen/perfmon.c
From: SUZUKI Kazuhiro <kaz@xxxxxxxxxxxxxx>
Date: Thu, 05 Apr 2007 18:22:39 +0900 (JST)
Delivery-date: Thu, 05 Apr 2007 02:21:34 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi all,

  I found the disunity of error messages and typo in perfmon.c.
This patch fixes it.

Thanks,
KAZ

Signed-off-by: Kazuhiro Suzuki <kaz@xxxxxxxxxxxxxx>
diff -r f378c424e0ce xen/arch/ia64/linux-xen/perfmon.c
--- a/xen/arch/ia64/linux-xen/perfmon.c Tue Apr 03 13:04:51 2007 -0600
+++ b/xen/arch/ia64/linux-xen/perfmon.c Thu Apr 05 17:03:33 2007 +0900
@@ -7471,8 +7471,8 @@ xenpfm_context_load(XEN_GUEST_HANDLE(pfa
        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];
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>