OcDeviceMiscLib: Better PCI info dump formatting
@@ -97,7 +97,7 @@ OcPciInfoDump (
OcAsciiPrintBuffer (
&FileBuffer,
&FileBufferSize,
- "Device %u: Vendor ID: 0x%04X, Device ID: 0x%04X, RevisionID: 0x%02X, ClassCode: 0x%02X%02X%02X",
+ "%u. Vendor ID: 0x%04X, Device ID: 0x%04X, RevisionID: 0x%02X, ClassCode: 0x%02X%02X%02X",
Index + 1,
PciDevice.Hdr.VendorId,
PciDevice.Hdr.DeviceId,
@@ -132,16 +132,15 @@ OcPciInfoDump (
OcAsciiPrintBuffer (
&FileBuffer,
&FileBufferSize,
- ", DevicePath: %s",
+ ",\n DevicePath: %s",
TextPciDevicePath
);
FreePool (TextPciDevicePath);
}
}
-
//
- // Append newlines.
+ // Finally, append a newline.
//
OcAsciiPrintBuffer (&FileBuffer, &FileBufferSize, "\n");
}
