]> git.ozlabs.org Git - petitboot/blobdiff - discover/paths.c
discover/paths: Set suffix to default value on error.
[petitboot] / discover / paths.c
index dd54ba2bc178289e6ba240c04e24af485ee8c1cf..174bdae16581a8084feeeef993bb61e77cc7b1fb 100644 (file)
@@ -118,6 +118,8 @@ static void load_url_process_exit(struct process *process)
        } else {
                result->status = LOAD_ERROR;
                load_url_result_cleanup_local(result);
+               pb_debug("Download client stdout buffer:\n%s\n",
+                               process->stdout_buf);
        }
 
        if (result->status == LOAD_OK && process->stdout_data)
@@ -184,8 +186,10 @@ static int busybox_progress_cb(void *arg)
                                }
        }
 
-       if (rc != 3)
+       if (rc != 3) {
                percentage = size = 0;
+               suffix = ' ';
+       }
 
        device_handler_status_download(handler, procinfo,
                        percentage, size, suffix);