debuggers.hg

changeset 21077:c56b885e7deb

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@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Mar 15 13:19:16 2010 +0000 (2010-03-15)
parents bce90bb3ce2c
children a6ed354be9e3
files xen/drivers/char/console.c
line diff
     1.1 --- a/xen/drivers/char/console.c	Mon Mar 15 13:17:38 2010 +0000
     1.2 +++ b/xen/drivers/char/console.c	Mon Mar 15 13:19:16 2010 +0000
     1.3 @@ -198,7 +198,7 @@ long read_console_ring(struct xen_sysctl
     1.4      sofar = 0;
     1.5  
     1.6      c = conringc;
     1.7 -    if ( op->incremental && ((int32_t)(op->index - c) < 0) )
     1.8 +    if ( op->incremental && ((int32_t)(op->index - c) > 0) )
     1.9          c = op->index;
    1.10  
    1.11      while ( (c != conringp) && (sofar < max) )