summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/intel/pmt/class.c
diff options
context:
space:
mode:
authorFinn Thain <fthain@linux-m68k.org>2025-03-28 09:39:55 +1100
committerGeert Uytterhoeven <geert@linux-m68k.org>2025-07-06 12:50:50 +0200
commit210a1ce8ed4391b64a888b3fb4b5611a13f5ccc7 (patch)
tree7b30f99a4717ba79aed4a3957dc57018cbe36786 /drivers/platform/x86/intel/pmt/class.c
parent8135422ae047fe0d5b7e8017f3fd43cf4dfa80c4 (diff)
m68k: Fix lost column on framebuffer debug console
Move the cursor position rightward after rendering the character, not before. This avoids complications that arise when the recursive console_putc call has to wrap the line and/or scroll the display. This also fixes the linewrap bug that crops off the rightmost column. When the cursor is at the bottom of the display, a linefeed will not move the cursor position further downward. Instead, the display scrolls upward. Avoid the repeated add/subtract sequence by way of a single subtraction at the initialization of console_struct_num_rows. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Cc: stable@vger.kernel.org Signed-off-by: Finn Thain <fthain@linux-m68k.org> Tested-by: Stan Johnson <userm57@yahoo.com> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Link: https://lore.kernel.org/9d4e8c68a456d5f2bc254ac6f87a472d066ebd5e.1743115195.git.fthain@linux-m68k.org Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions