soc/software/bios/cmds/cmd_mem.c: fix number of required params

This commit is contained in:
tongchen126 2021-12-30 20:43:05 +08:00
parent 8ac3fbc039
commit e87e7ff31c

View file

@ -225,7 +225,7 @@ static void mem_speed_handler(int nb_params, char **params)
bool read_only = false;
bool random = false;
if (nb_params < 1) {
if (nb_params < 2) {
printf("mem_speed <addr> <size> [<readonly>] [<random>]");
return;
}