X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=ui%2Ftest%2Fdiscover-test.c;h=6fb14dec2059b9c83c0184174b885e1219e1c5d1;hp=b099b59128b7bbec99f34845a708d89dc45ea9a7;hb=HEAD;hpb=70907c3fc4b344d00ce900e6a536e9cc16a35216 diff --git a/ui/test/discover-test.c b/ui/test/discover-test.c index b099b59..6fb14de 100644 --- a/ui/test/discover-test.c +++ b/ui/test/discover-test.c @@ -16,6 +16,8 @@ static const char *device_type_string(enum device_type type) return "optical"; case DEVICE_TYPE_ANY: return "any"; + case DEVICE_TYPE_LUKS: + return "encrypted"; case DEVICE_TYPE_UNKNOWN: return "unknown"; } @@ -75,14 +77,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); }