[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XenPPC] [pushed] [ppc] Print some console history if it has already been drained
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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |