Add a New Comment (Rich Markup)
Comment Type & Canned Response: None No canned response available
From 7da84c1a23313b3b3dfac0dede125204adf45ca4 Mon Sep 17 00:00:00 2001 From: Bjarni Ingi Gislason <bjarniig@vortex.is> Date: Fri, 29 Jul 2022 00:56:54 +0000 Subject: [PATCH] tty.cpp: prefer showing data over opinion
Directory: src/devices/grotty
Show the data that cause an error message.
Signed-off-by: Bjarni Ingi Gislason <bjarniig@vortex.is> --- src/devices/grotty/tty.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/devices/grotty/tty.cpp b/src/devices/grotty/tty.cpp index 019791667..2b4d25f56 100644 --- a/src/devices/grotty/tty.cpp +++ b/src/devices/grotty/tty.cpp @@ -360,7 +360,8 @@ void tty_printer::add_char(output_character c, int w, #endif int hpos = h / font::hor; if (hpos < SHRT_MIN || hpos > SHRT_MAX) { - error("character with ridiculous horizontal position discarded"); + error("character with horizontal position %1 discarded while < %2 or " + "> %3", hpos, SHRT_MIN, SHRT_MAX); return; } int vpos; -- 2.35.1
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Only logged-in users can vote.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Follow 2 latest changes.
Copyright © 2023 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.9