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-devel

[Xen-devel] [PATCH] Fix incremental access to hypervisor console log

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix incremental access to hypervisor console log
From: Kouya Shimura <kouya@xxxxxxxxxxxxxx>
Date: Fri, 12 Mar 2010 19:27:41 +0900
Cc: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Delivery-date: Fri, 12 Mar 2010 02:28:27 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
"xenconsoled --log=hv" outputs duplicated messages to
/var/log/xen/hypervisor.log.

Signed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx>

diff -r 6e72f8c3c017 xen/drivers/char/console.c
--- a/xen/drivers/char/console.c        Tue Mar 09 18:15:52 2010 +0000
+++ b/xen/drivers/char/console.c        Fri Mar 12 19:17:26 2010 +0900
@@ -198,7 +198,7 @@ long read_console_ring(struct xen_sysctl
     sofar = 0;
 
     c = conringc;
-    if ( op->incremental && ((int32_t)(op->index - c) < 0) )
+    if ( op->incremental && ((int32_t)(op->index - c) > 0) )
         c = op->index;
 
     while ( (c != conringp) && (sofar < max) )
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Fix incremental access to hypervisor console log, Kouya Shimura <=