Skip to contentSkip to conversation

bootmenu regression

DISCUSSION Mark Kettenis 3 participants 3 messages Jun 10, 2023 – Jun 12, 2023

lore
Share & tools
lore
#0 lore raw

Hi Simon,

In commit 32bab0eae51 you added a

  #define ansi 0

and put the code that positions the cursor to print the "Hit any key to stop autoboot" message behind an

if (ansi)

condition. As a result that message is now printed in whatever place the cursor happens to be, which happens to be the last menu entry that gets printed, making that menu option confusing.

The commit message makes no mention of any intended side-effect of the change, so am I right assuming that this is debugging code that accidentally made it out of your tree?

#1 lore raw
Quoted 11 lines · On Saturday 10 June 2023 16:31:06 Mark Kettenis wrote:

Hi Simon,

In commit 32bab0eae51 you added a

  #define ansi 0

and put the code that positions the cursor to print the "Hit any key to stop autoboot" message behind an

if (ansi)

Quoted 7 lines

condition. As a result that message is now printed in whatever place the cursor happens to be, which happens to be the last menu entry that gets printed, making that menu option confusing.

The commit message makes no mention of any intended side-effect of the change, so am I right assuming that this is debugging code that accidentally made it out of your tree?

Hello! This is known issue and it broke support for bootmenu (tested on nokia n900). I reported it month ago, but there was no reaction for it. So now I sent a revert patches, to make bootmenu work again. I guess that this issue can be later fixed properly.

#2 lore raw

Hi Pali,

Quoted 17 lines · Pali Rohár
Quoted 15 lines · On Saturday 10 June 2023 16:31:06 Mark Kettenis wrote:

Hi Simon,

In commit 32bab0eae51 you added a

  #define ansi 0

and put the code that positions the cursor to print the "Hit any key to stop autoboot" message behind an

if (ansi)

condition. As a result that message is now printed in whatever place the cursor happens to be, which happens to be the last menu entry that gets printed, making that menu option confusing.

Quoted 8 lines
Quoted 3 lines

The commit message makes no mention of any intended side-effect of the change, so am I right assuming that this is debugging code that accidentally made it out of your tree?

Hello! This is known issue and it broke support for bootmenu (tested on nokia n900). I reported it month ago, but there was no reaction for it. So now I sent a revert patches, to make bootmenu work again. I guess that this issue can be later fixed properly.

If I understand the issue correctly I sent a patch to restore the ANSI codes.

Regards,
Simon