mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [RFC PATCH] fbconsole: add missing break
@ 2025-03-25 16:00 Jules Maselbas
  2025-03-27  7:56 ` Sascha Hauer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jules Maselbas @ 2025-03-25 16:00 UTC (permalink / raw)
  To: barebox; +Cc: Jules Maselbas

The cursor move CSI has nothing to do with the clear-screen CSI.
The existing fallthrough looks like a bug, add the missing break.

Fixes: 27f79c05ab ("video: implement framebuffer console")
Signed-off-by: Jules Maselbas <jmaselbas@zdiv.net>
---

 I am not 100% sure if this is a bug or not, it feels like it sould not
 fallthrough, an extra look would be nice.


 drivers/video/fbconsole.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/video/fbconsole.c b/drivers/video/fbconsole.c
index 24592d00ed..7462e34778 100644
--- a/drivers/video/fbconsole.c
+++ b/drivers/video/fbconsole.c
@@ -576,6 +576,7 @@ static void fbc_parse_csi(struct fbc_priv *priv)
 		priv->x = clamp(pos - 1, 0, (int) priv->cols - 1);
 
 		show_cursor(priv, priv->x, priv->y);
+		break;
 	case 'K':
 		pos = simple_strtoul(priv->csi, &end, 10);
 		video_invertchar(priv, priv->x, priv->y);
-- 
2.48.1




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-03-27  8:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-25 16:00 [RFC PATCH] fbconsole: add missing break Jules Maselbas
2025-03-27  7:56 ` Sascha Hauer
2025-03-27  8:12 ` Sascha Hauer
2025-03-27  8:17 ` Ahmad Fatoum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox