X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=ui%2Ftest%2Fdiscover-test.c;h=f3e7dd8cfc5b177595fedfd9a1ff9815c1dea3b2;hp=363a28978f810561ddd00991c96683ce9edd9f9a;hb=211d7eb1de2d3a9cd97846deb9a85a934dae2981;hpb=95a566908a5e02c51bd2af6b468df3fb9ad1bf75 diff --git a/ui/test/discover-test.c b/ui/test/discover-test.c index 363a289..f3e7dd8 100644 --- a/ui/test/discover-test.c +++ b/ui/test/discover-test.c @@ -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); }