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

[Xen-changelog] [xen-unstable] Fix incremental access to hypervisor cons

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Fix incremental access to hypervisor console log
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 15 Mar 2010 06:35:12 -0700
Delivery-date: Mon, 15 Mar 2010 06:35:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1268659156 0
# Node ID c56b885e7debd08169fb67b90278dd1c9cee8ad4
# Parent  bce90bb3ce2cfdb61479f33b4d55cea1060010eb
Fix incremental access to hypervisor console log

"xenconsoled --log=hv" outputs duplicated messages to
/var/log/xen/hypervisor.log.

Signed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx>
---
 xen/drivers/char/console.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r bce90bb3ce2c -r c56b885e7deb xen/drivers/char/console.c
--- a/xen/drivers/char/console.c        Mon Mar 15 13:17:38 2010 +0000
+++ b/xen/drivers/char/console.c        Mon Mar 15 13:19:16 2010 +0000
@@ -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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Fix incremental access to hypervisor console log, Xen patchbot-unstable <=