Re: [PATCH v2 4/4] vt: coherence validation code for the unicode screen buffer

2018-06-19 Thread Nicolas Pitre
On Mon, 18 Jun 2018, Joe Perches wrote: > On Mon, 2018-06-18 at 21:50 -0400, Nicolas Pitre wrote: > > On Tue, 19 Jun 2018, Andy Shevchenko wrote: > [] > > > > + /* > > > > +* Make sure our unicode screen translates into the same glyphs > > > > +* as the actual screen. This is

Re: [PATCH v2 4/4] vt: coherence validation code for the unicode screen buffer

2018-06-18 Thread Joe Perches
On Mon, 2018-06-18 at 21:50 -0400, Nicolas Pitre wrote: > On Tue, 19 Jun 2018, Andy Shevchenko wrote: [] > > > + /* > > > +* Make sure our unicode screen translates into the same glyphs > > > +* as the actual screen. This is brutal indeed. > > > +*/ > > > + p = (

Re: [PATCH v2 4/4] vt: coherence validation code for the unicode screen buffer

2018-06-18 Thread Nicolas Pitre
On Tue, 19 Jun 2018, Andy Shevchenko wrote: > On Sun, Jun 17, 2018 at 10:07 PM, Nicolas Pitre > wrote: > > Make sure the unicode screen buffer matches the video screen content. > > This is provided for debugging convenience and disabled by default. > > > +#define VC_UNI_SCREEN_DEBUG 0 > > > +

Re: [PATCH v2 4/4] vt: coherence validation code for the unicode screen buffer

2018-06-18 Thread Andy Shevchenko
On Sun, Jun 17, 2018 at 10:07 PM, Nicolas Pitre wrote: > Make sure the unicode screen buffer matches the video screen content. > This is provided for debugging convenience and disabled by default. > +#define VC_UNI_SCREEN_DEBUG 0 > + if (!VC_UNI_SCREEN_DEBUG || !uniscr) > + r

[PATCH v2 4/4] vt: coherence validation code for the unicode screen buffer

2018-06-17 Thread Nicolas Pitre
Make sure the unicode screen buffer matches the video screen content. This is provided for debugging convenience and disabled by default. Signed-off-by: Nicolas Pitre --- drivers/tty/vt/vt.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/drivers/tty/