bootstage: Use show_boot_error() for -ve progress numbers
[oweals/u-boot.git] / common / cmd_net.c
index 3dd6810e0512f480c24a33e3c146ee434cc9a837..c9f2a0864ae02e67f0beffbeee7152aef5a9042a 100644 (file)
@@ -230,23 +230,23 @@ static int netboot_common(enum proto_t proto, cmd_tbl_t *cmdtp, int argc,
                break;
 #endif
        default:
-               show_boot_progress (-80);
+               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;
        }
 
@@ -257,9 +257,9 @@ static int netboot_common(enum proto_t proto, cmd_tbl_t *cmdtp, int argc,
        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;
 }