Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115738835
D49060.id151195.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D49060.id151195.diff
View Options
diff --git a/lib/libefivar/efivar-dp-format.c b/lib/libefivar/efivar-dp-format.c
--- a/lib/libefivar/efivar-dp-format.c
+++ b/lib/libefivar/efivar-dp-format.c
@@ -1944,7 +1944,7 @@
case SIGNATURE_TYPE_MBR:
UefiDevicePathLibCatPrint (
Str,
- "HD(%d,%s,0x%08x,",
+ "HD(%d,%s,0x%08x",
Hd->PartitionNumber,
"MBR",
// *((UINT32 *)(&(Hd->Signature[0])))
@@ -1955,7 +1955,7 @@
case SIGNATURE_TYPE_GUID:
UefiDevicePathLibCatPrint (
Str,
- "HD(%d,%s,%36s,",
+ "HD(%d,%s,%36s",
Hd->PartitionNumber,
"GPT",
G(&(Hd->Signature[0]))
@@ -1965,14 +1965,18 @@
default:
UefiDevicePathLibCatPrint (
Str,
- "HD(%d,%d,0,",
+ "HD(%d,%d,0",
Hd->PartitionNumber,
Hd->SignatureType
);
break;
}
- UefiDevicePathLibCatPrint (Str, "0x%lx,0x%lx)", Hd->PartitionStart, Hd->PartitionSize);
+ if (DisplayOnly) {
+ UefiDevicePathLibCatPrint (Str, ")");
+ } else {
+ UefiDevicePathLibCatPrint (Str, ",0x%lx,0x%lx)", Hd->PartitionStart, Hd->PartitionSize);
+ }
}
/**
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 28, 10:55 PM (8 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16741869
Default Alt Text
D49060.id151195.diff (1 KB)
Attached To
Mode
D49060: libefivar: Add Display Only format for Hard Drive
Attached
Detach File
Event Timeline
Log In to Comment