Skip to contentSkip to conversation

comment about grub_error, capitalisation and one commit

DISCUSSION Carles Pina i Estany 2 participants 3 messages Jan 20, 2010 – Jan 25, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

grub_error strings are printed by kern/err.c and are printed after ":" like:
Error: %s

(talking from memory)

One commit from Robert did:
----
if (argc == 0)
- return grub_error (GRUB_ERR_BAD_ARGUMENT, "no initrd specified");
+ return grub_error (GRUB_ERR_BAD_ARGUMENT, "No initrd specified");

if (!loaded)
- return grub_error (GRUB_ERR_BAD_ARGUMENT, "You need to load the kernel first.");
+ return grub_error (GRUB_ERR_BAD_ARGUMENT, "You need to load Linux first.");
----

This should not be capitalised.

[email protected]
Wed 2010-01-20 01:29:06 +0000
----
* loader/mips/linux.c (grub_cmd_initrd) (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
----

So:
a) if someone has a better idea to avoid this mistake again than paying attention I can implement.
b) Robert: I reverse it, fine?

Cheers,

Signature · 2 lines
Carles Pina i Estany
	http://pinux.info
#1 lore raw
Quoted 3 lines · Carles Pina i Estany

a) if someone has a better idea to avoid this mistake again than paying attention I can implement.
b) Robert: I reverse it, fine?

I just removed capitalization of error strings in the whole file. A generic check would be nice. If you'd like to implement it, I think it should be possible to verify this entirely in build time.

Signature · 3 lines
Robert Millan

  "Be the change you want to see in the world" -- Gandhi
#2 lore raw

Hi,

Quoted 8 lines · Robert Millan
Quoted 3 lines · Carles Pina i Estany

a) if someone has a better idea to avoid this mistake again than paying attention I can implement.
b) Robert: I reverse it, fine?

I just removed capitalization of error strings in the whole file. A generic check would be nice. If you'd like to implement it, I think it should be possible to verify this entirely in build time.

I'll think about it "soon". Build time can be a bit difficult: if the sentence starts with Linux / Unix / MS-DOS / ... then needs to be capitalized (we can have a blacklist of words)

Signature · 2 lines
Carles Pina i Estany
	http://pinux.info