cmd_setmac/setserial: use simple_stroul instead of skip_atoi
This commit is contained in:
parent
14586c76a0
commit
ac606588bb
|
@ -250,7 +250,7 @@ int do_setserial(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
|||
if (argc != 2)
|
||||
return CMD_RET_FAILURE;
|
||||
|
||||
serial_number = skip_atoi(argv[1]);
|
||||
serial_number = simple_strtoul(argv[1], NULL, 16);
|
||||
if (serial_number <= 0) {
|
||||
printf("Invalid serialnumber. <= 0!\n");
|
||||
return CMD_RET_FAILURE;
|
||||
|
|
Loading…
Reference in New Issue