]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
disk: part: Print out the unknown device uclass id
authorBin Meng <bmeng@tinylab.org>
Tue, 26 Sep 2023 08:43:44 +0000 (16:43 +0800)
committerTom Rini <trini@konsulko.com>
Tue, 10 Oct 2023 20:30:44 +0000 (16:30 -0400)
It's helpful to output the device uclass id for unknown devices
during the debugging process.

Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
disk/part.c

index 72241b7b232c11a4244bb0143ddd8e24261a2077..91275154001d0e7f07d20063e2332cd8d3213f06 100644 (file)
@@ -337,7 +337,7 @@ static void print_part_header(const char *type, struct blk_desc *desc)
                puts("EFI");
                break;
        default:
-               puts("UNKNOWN");
+               printf("UNKNOWN(%d)", desc->uclass_id);
                break;
        }
        printf (" device %d  --   Partition Type: %s\n\n",