]> git.ozlabs.org Git - petitboot/blobdiff - ui/test/discover-test.c
ui/ncurses: Remove help shortcut from nc-subset
[petitboot] / ui / test / discover-test.c
index 363a28978f810561ddd00991c96683ce9edd9f9a..f3e7dd8cfc5b177595fedfd9a1ff9815c1dea3b2 100644 (file)
@@ -8,6 +8,8 @@ static const char *device_type_string(enum device_type type)
        switch (type) {
        case DEVICE_TYPE_DISK:
                return "disk";
+       case DEVICE_TYPE_USB:
+               return "usb";
        case DEVICE_TYPE_NETWORK:
                return "network";
        case DEVICE_TYPE_OPTICAL:
@@ -73,14 +75,12 @@ static void print_device_remove(struct device *device,
        printf("\tname: %s\n", device->name);
 }
 
-static void print_status(struct boot_status *status,
+static void print_status(struct status *status,
        void __attribute__((unused)) *arg)
 {
        printf("status:\n");
        printf("\ttype:     %d\n", status->type);
        printf("\tmessage:  %s\n", status->message);
-       printf("\tdetail:   %s\n", status->detail);
-       printf("\tprogress: %d\n", status->progress);
 
 }