From: Keir Fraser Date: Wed, 24 Mar 2010 11:14:00 +0000 (+0000) Subject: Fix incremental access to hypervisor console log X-Git-Tag: 3.4.3-rc4~13 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6510508ac4fa5d8c62bd5402f0bbfa5dcd7a8c77;p=people%2Fvhanquez%2Fxen.git Fix incremental access to hypervisor console log "xenconsoled --log=hv" outputs duplicated messages to /var/log/xen/hypervisor.log. Signed-off-by: Kouya Shimura xen-unstable changeset: 21031:c56b885e7deb xen-unstable date: Mon Mar 15 13:19:16 2010 +0000 --- diff --git a/xen/drivers/char/console.c b/xen/drivers/char/console.c index 56eb29d7e..9228de87e 100644 --- a/xen/drivers/char/console.c +++ b/xen/drivers/char/console.c @@ -198,7 +198,7 @@ long read_console_ring(struct xen_sysctl_readconsole *op) 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) )