Skip to content

Commit

Permalink
Merge branch 't/merge-base/main-2023-02-16'
Browse files Browse the repository at this point in the history
  • Loading branch information
wm1 committed Mar 8, 2023
2 parents 8ef4a1c + f43a827 commit 11a4943
Show file tree
Hide file tree
Showing 2 changed files with 323 additions and 323 deletions.
18 changes: 9 additions & 9 deletions usb/usbview/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -1977,7 +1977,7 @@ DisplayConfigDesc (
AppendTextBuffer("*!*ERROR: bLength of %d for Device Qualifier incorrect, "\
"should be %d\r\n",
commonDesc->bLength,
sizeof(USB_DEVICE_QUALIFIER_DESCRIPTOR));
(UCHAR) sizeof(USB_DEVICE_QUALIFIER_DESCRIPTOR));
OOPS();
displayUnknown = TRUE;
break;
Expand All @@ -1997,7 +1997,7 @@ DisplayConfigDesc (
AppendTextBuffer("*!*ERROR: bLength of %d for Other Speed Configuration "\
"incorrect, should be %d\r\n",
commonDesc->bLength,
sizeof(USB_CONFIGURATION_DESCRIPTOR));
(UCHAR) sizeof(USB_CONFIGURATION_DESCRIPTOR));
OOPS();
displayUnknown = TRUE;
}
Expand All @@ -2019,7 +2019,7 @@ DisplayConfigDesc (
AppendTextBuffer("*!*ERROR: bLength of %d for Configuration incorrect, "\
"should be %d\r\n",
commonDesc->bLength,
sizeof(USB_CONFIGURATION_DESCRIPTOR));
(UCHAR) sizeof(USB_CONFIGURATION_DESCRIPTOR));
OOPS();
displayUnknown = TRUE;
break;
Expand All @@ -2042,8 +2042,8 @@ DisplayConfigDesc (
AppendTextBuffer("*!*ERROR: bLength of %d for Interface incorrect, "\
"should be %d or %d\r\n",
commonDesc->bLength,
sizeof(USB_INTERFACE_DESCRIPTOR),
sizeof(USB_INTERFACE_DESCRIPTOR2));
(UCHAR) sizeof(USB_INTERFACE_DESCRIPTOR),
(UCHAR) sizeof(USB_INTERFACE_DESCRIPTOR2));
OOPS();
displayUnknown = TRUE;
break;
Expand Down Expand Up @@ -2078,8 +2078,8 @@ DisplayConfigDesc (
AppendTextBuffer("*!*ERROR: bLength of %d for Endpoint incorrect, "\
"should be %d or %d\r\n",
commonDesc->bLength,
sizeof(USB_ENDPOINT_DESCRIPTOR),
sizeof(USB_ENDPOINT_DESCRIPTOR2));
(UCHAR) sizeof(USB_ENDPOINT_DESCRIPTOR),
(UCHAR) sizeof(USB_ENDPOINT_DESCRIPTOR2));
OOPS();
displayUnknown = TRUE;
break;
Expand Down Expand Up @@ -2506,7 +2506,7 @@ DisplayUsb20ExtensionCapabilityDescriptor (
AppendTextBuffer("bDevCapabilityType: 0x%02X\r\n",
extCapDesc->bDevCapabilityType);
AppendTextBuffer("bmAttributes: 0x%08X",
extCapDesc->bmAttributes);
extCapDesc->bmAttributes.AsUlong);
if (extCapDesc->bmAttributes.AsUlong & USB_DEVICE_CAPABILITY_USB20_EXTENSION_BMATTRIBUTES_RESERVED_MASK)
{
if(gDoAnnotation)
Expand Down Expand Up @@ -2955,7 +2955,7 @@ DisplayBillboardCapabilityDescriptor (
billboardCapDesc->bPreferredAlternateMode);

AppendTextBuffer("VCONN Power: 0x%04X",
billboardCapDesc->VconnPower);
billboardCapDesc->VconnPower.AsUshort);

if (billboardCapDesc->VconnPower.NoVconnPowerRequired)
{
Expand Down
Loading

0 comments on commit 11a4943

Please sign in to comment.