efi_loader: correctly render UsbClass DP nodes as text
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 4 Sep 2019 12:30:41 +0000 (14:30 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 5 Sep 2019 21:18:51 +0000 (23:18 +0200)
Correct the text representation of UsbClass device path nodes.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_device_path_to_text.c

index 6e27508fba4ef9167923a2bef8f4e33b93124d1d..b20b7c097c98227b25c21e1d6c7c7c268df06f53 100644 (file)
@@ -141,7 +141,7 @@ static char *dp_msging(char *s, struct efi_device_path *dp)
                struct efi_device_path_usb_class *ucdp =
                        (struct efi_device_path_usb_class *)dp;
 
-               s += sprintf(s, "USBClass(%x,%x,%x,%x,%x)",
+               s += sprintf(s, "UsbClass(0x%x,0x%x,0x%x,0x%x,0x%x)",
                        ucdp->vendor_id, ucdp->product_id,
                        ucdp->device_class, ucdp->device_subclass,
                        ucdp->device_protocol);