]> git.ozlabs.org Git - petitboot/blobdiff - ui/ncurses/nc-cui.c
ui/ncurses: Don't announce pb-discover connection
[petitboot] / ui / ncurses / nc-cui.c
index 86515bc7f987e1ba1bd9310d6dc7a2d71dffdfce..fbc02b969f15b1177b7d491825366d95631c2959 100644 (file)
@@ -714,12 +714,9 @@ static void cui_update_status(struct status *status, void *arg)
 
        statuslog_append_steal(cui, cui->statuslog, status);
 
-       nc_scr_status_printf(cui->current,
-                       "%s: %s",
-                       status->type == STATUS_ERROR ?
-                               _("Error") : _("Info"),
-                       status->message);
-
+       /* Ignore status messages from the backlog */
+       if (!status->backlog)
+               nc_scr_status_printf(cui->current, "%s", status->message);
 }
 
 static void cui_update_mm_title(struct cui *cui)
@@ -1010,8 +1007,7 @@ static int cui_server_wait(void *arg)
                nc_scr_status_printf(cui->current,
                                     "Info: Waiting for device discovery");
        } else {
-               nc_scr_status_printf(cui->current,
-                                    "Info: Connected to pb-discover!");
+               nc_scr_status_free(cui->current);
                talloc_steal(cui, cui->client);
 
                if (cui->has_input) {