Skip to contentSkip to conversation

Patch for boot message

DISCUSSION Mischa Spiegelmock 2 participants 4 messages Aug 11, 2007 – Aug 20, 2007

lore
Share & tools
lore
#0 lore raw

I got sick of grub saying "The highlighted entry will be booted automatically in 1 seconds."

Here's a patch:

Index: normal/menu.c
===================================================================
RCS file: /sources/grub/grub2/normal/menu.c,v
retrieving revision 1.18
diff -r1.18 menu.c
331,332c331,332
< The highlighted entry will be booted automatically in %d seconds. ",
< timeout);
---

Quoted 2 lines

The highlighted entry will be booted automatically in %d second%c ",

                     timeout, (timeout == 1 ? ' ' : 's'));

-Mischa Spiegelmock

#1 lore raw
Quoted 14 lines · Mischa Spiegelmock

I got sick of grub saying "The highlighted entry will be booted automatically in 1 seconds."

Here's a patch:

Index: normal/menu.c
===================================================================
RCS file: /sources/grub/grub2/normal/menu.c,v
retrieving revision 1.18
diff -r1.18 menu.c
331,332c331,332
< The highlighted entry will be booted automatically in %d seconds. ",
< timeout);
---

Quoted 3 lines
Quoted 1 line

The highlighted entry will be booted automatically in %d

second%c ",

Quoted 1 line
                     timeout, (timeout == 1 ? ' ' : 's'));

This breaks l10n, and also adds a bogus ' ' (although that's a minor issue).

The SI symbol for second is 's'. Why not using that instead?

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)
#2 lore raw
Quoted 18 lines · Robert Millan
Quoted 16 lines · Mischa Spiegelmock

I got sick of grub saying "The highlighted entry will be booted automatically in 1 seconds."

Here's a patch:

Index: normal/menu.c
===================================================================
RCS file: /sources/grub/grub2/normal/menu.c,v
retrieving revision 1.18
diff -r1.18 menu.c
331,332c331,332
< The highlighted entry will be booted automatically in %d seconds. ",
< timeout);
---

Quoted 2 lines

The highlighted entry will be booted automatically in %d

Quoted 10 lines
Quoted 4 lines

second%c ",

Quoted 2 lines
                     timeout, (timeout == 1 ? ' ' : 's'));

This breaks l10n, and also adds a bogus ' ' (although that's a minor issue).

The SI symbol for second is 's'. Why not using that instead?

Well whatever, I was just trying to fix the currently broken behavior. As for adding the "bogus" ' ', that's keeping in line with the comment on the line before:

/* NOTE: Do not remove the trailing space characters.
They are required to clear the line. */

I just tried to do the least invasive patch that would keep the amount of characters constant.

#3 lore raw
Quoted 32 lines · Mischa Spiegelmock
Quoted 22 lines · Robert Millan
Quoted 20 lines · Mischa Spiegelmock

I got sick of grub saying "The highlighted entry will be booted automatically in 1 seconds."

Here's a patch:

Index: normal/menu.c
===================================================================
RCS file: /sources/grub/grub2/normal/menu.c,v
retrieving revision 1.18
diff -r1.18 menu.c
331,332c331,332
< The highlighted entry will be booted automatically in %d seconds.
",
< timeout);
---

Quoted 2 lines

The highlighted entry will be booted automatically in %d

second%c ",

Quoted 9 lines
Quoted 2 lines
Quoted 2 lines
                    timeout, (timeout == 1 ? ' ' : 's'));

This breaks l10n, and also adds a bogus ' ' (although that's a minor issue).

The SI symbol for second is 's'. Why not using that instead?

Quoted 6 lines

Well whatever, I was just trying to fix the currently broken behavior. As for adding the "bogus" ' ', that's keeping in line with the comment on the line before:

/* NOTE: Do not remove the trailing space characters.
They are required to clear the line. */

Ah, right. I see.

Quoted 2 lines

I just tried to do the least invasive patch that would keep the amount of characters constant.

I fixed it to use "s". Thanks for the correction

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)