fbset: abort on not handled options
Not all options are actually implemented. In this case, return a message and an error code to make it clear that the requested command has not been executed. function old new delta .rodata 105200 105224 +24 fbset_main 747 733 -14 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 24/-14) Total: 10 bytes Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
cb8d2ea8c9
commit
e8dfa0c1be
@ -519,6 +519,9 @@ int fbset_main(int argc, char **argv)
|
|||||||
var_set.bits_per_pixel = xatou32(argv[1]);
|
var_set.bits_per_pixel = xatou32(argv[1]);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
default:
|
||||||
|
bb_perror_msg_and_die("option '%s' not handled",
|
||||||
|
g_cmdoptions[i].name);
|
||||||
}
|
}
|
||||||
switch (g_cmdoptions[i].code) {
|
switch (g_cmdoptions[i].code) {
|
||||||
case CMD_FB:
|
case CMD_FB:
|
||||||
|
Loading…
Reference in New Issue
Block a user