summaryrefslogtreecommitdiff
path: root/OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.c
diff options
context:
space:
mode:
Diffstat (limited to 'OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.c')
-rw-r--r--OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.c b/OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.c
index 2d610f6..85faae6 100644
--- a/OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.c
+++ b/OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.c
@@ -538,9 +538,9 @@ QemuLoadKernelImage (
if (InitrdSize > 0) {
//
- // Append ' initrd=initrd' in UTF-16.
+ // Prefix ' initrd=initrd' in UTF-16.
//
- KernelLoadedImage->LoadOptionsSize += sizeof (L" initrd=initrd") - 2;
+ KernelLoadedImage->LoadOptionsSize += sizeof (L"initrd=initrd ") - 2;
}
if (Shim) {
@@ -572,8 +572,8 @@ QemuLoadKernelImage (
KernelLoadedImage->LoadOptionsSize,
"%a%a%a",
(Shim == FALSE) ? "" : "kernel ",
- (CommandLineSize == 0) ? "" : CommandLine,
- (InitrdSize == 0) ? "" : " initrd=initrd"
+ (InitrdSize == 0) ? "" : "initrd=initrd ",
+ (CommandLineSize == 0) ? "" : CommandLine
);
DEBUG ((
DEBUG_INFO,