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

[XenPPC] [pushed] [ppc] Print some console history if it has already bee

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [pushed] [ppc] Print some console history if it has already been drained
From: jimix@xxxxxxxxxxxxxx
Date: Fri, 19 May 2006 07:05:08 -0400
Delivery-date: Fri, 19 May 2006 04:03:14 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
changeset:   10290:a9f1f041083927b7e8e3c9496dc1cdc36acb8960
user:        jimix@xxxxxxxxxxxxxxxxxxxxx
date:        Thu May 18 13:27:35 2006 -0400
files:       tools/domctrl/console.c
description:
[ppc] Print some console history if it has already been drained


diff -r 3511247bfd5cb2a5f7c9f51c756713270061ca42 -r 
a9f1f041083927b7e8e3c9496dc1cdc36acb8960 tools/domctrl/console.c
--- a/tools/domctrl/console.c   Thu May 18 13:25:18 2006 -0400
+++ b/tools/domctrl/console.c   Thu May 18 13:27:35 2006 -0400
@@ -62,8 +62,10 @@ int console(char *argv[], int argc)
                  intf->in_cons, intf->in_prod,
                  intf->out_cons, intf->out_prod));
 
-    /* start from the beging */
-    intf->out_cons = 0;
+    if (intf->out_cons == intf->out_prod) {
+        intf->out_cons = intf->out_prod - (intf->out_prod & sizeof(intf->out));
+        DEBUG(printf("out_cons adjusted to: %x\n", intf->out_cons));
+    }
 
     flgs = fcntl(STDIN_FILENO, F_GETFL);
     if (flgs == -1) {



_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [pushed] [ppc] Print some console history if it has already been drained, jimix <=