break;
#endif
default:
- show_boot_progress (-80);
- return cmd_usage(cmdtp);
+ show_boot_error(80);
+ return CMD_RET_USAGE;
}
- show_boot_progress (80);
+ show_boot_progress(80);
if ((size = NetLoop(proto)) < 0) {
- show_boot_progress (-81);
+ show_boot_error(81);
return 1;
}
- show_boot_progress (81);
+ show_boot_progress(81);
/* NetLoop ok, update environment */
netboot_update_env();
/* done if no file was loaded (no errors though) */
if (size == 0) {
- show_boot_progress (-82);
+ show_boot_error(82);
return 0;
}
rcode = bootm_maybe_autostart(cmdtp, argv[0]);
if (rcode < 0)
- show_boot_progress (-83);
+ show_boot_error(83);
else
- show_boot_progress (84);
+ show_boot_progress(84);
return rcode;
}
NetPingIP = string_to_ip(argv[1]);
if (NetPingIP == 0)
- return cmd_usage(cmdtp);
+ return CMD_RET_USAGE;
if (NetLoop(PING) < 0) {
printf("ping failed; host %s is not alive\n", argv[1]);
int do_dns(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
if (argc == 1)
- return cmd_usage(cmdtp);
+ return CMD_RET_USAGE;
/*
* We should check for a valid hostname: