[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] xen/console: Add domain ID to output if VERBOSE
>>> On 11.09.12 at 15:33, Daniel De Graaf <dgdegra@xxxxxxxxxxxxx> wrote: > @@ -339,6 +343,18 @@ static long guest_console_write(XEN_GUEST_HANDLE(char) > buffer, int count) > > spin_lock_irq(&console_lock); > > +#ifdef VERBOSE > + snprintf(pbuf, sizeof(pbuf), "(%d) ", current->domain->domain_id); > + if (active != current->domain->domain_id) { > + sercon_puts(pbuf); > + vga_puts(pbuf); > + > + active = current->domain->domain_id; > + } > + if (strchr(kbuf, '\n')) > + active = DOMID_IDLE; > +#endif This is too simplistic - you ought to be dealing with embedded '\n', not just trailing ones. Jan > + > sercon_puts(kbuf); > vga_puts(kbuf); > > -- > 1.7.11.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |