Impact: Extend the cli.
`show' in the dmi mode now lists the available modules.
Misc.: remove noisy printf.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
};
struct cli_module_descr dmi_show_modules = {
- .modules = list_dmi_show_modules,
- .nb_modules = CLI_DMI_MAX_MODULES,
+ .modules = list_dmi_show_modules,
+ .nb_modules = CLI_DMI_MAX_MODULES,
+ .default_callback = main_show_dmi,
};
struct cli_mode_descr dmi_mode = {
}
else {
find_cli_callback_descr(command, hdt_mode.default_modules,
- ¤t_module);
+ ¤t_module);
if (current_module != NULL) {
current_module->exec(argc, argv, hardware);
return;
}
-
- printf("Command '%s' incorrect. See `help'.\n", command);
}
}