* grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):

Issue error rather than printf on unknown arguments.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-11-11 17:44:47 +01:00
parent 4c458569a7
commit 63a9e6f6a0
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
Issue error rather than printf on unknown arguments.
2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):

View file

@ -403,7 +403,8 @@ grub_ieee1275_parse_args (const char *path, enum grub_ieee1275_parse_type ptype)
break;
default:
unknown:
grub_printf ("Unsupported type %s for device %s\n", type, device);
grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET,
"unsupported type %s for device %s", type, device);
}
fail: