Re: [Kgdb-bugreport] [PATCH v2 2/7] kdb: Use format-strings rather than '\0' injection in kdb_read()

2024-04-23 Thread Daniel Thompson
On Mon, Apr 22, 2024 at 04:52:04PM -0700, Doug Anderson wrote: > Hi, > > On Mon, Apr 22, 2024 at 9:37 AM Daniel Thompson > wrote: > > > > Currently when kdb_read() needs to reposition the cursor it uses copy and > > paste code that works by injecting an '\0' at the cursor position before > >

Re: [Kgdb-bugreport] [PATCH v2 2/7] kdb: Use format-strings rather than '\0' injection in kdb_read()

2024-04-22 Thread Doug Anderson
Hi, On Mon, Apr 22, 2024 at 9:37 AM Daniel Thompson wrote: > > Currently when kdb_read() needs to reposition the cursor it uses copy and > paste code that works by injecting an '\0' at the cursor position before > delivering a carriage-return and reprinting the line (which stops at the > '\0').