mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/RamDiskDxe: fix C string literal catenation in info messages
RamDiskDxe installs the RamDiskAcpiCheck() Ready To Boot callback function. If EFI_ACPI_TABLE_PROTOCOL and/or EFI_ACPI_SDT_PROTOCOL are not found, then informational messages are logged, and the RAM disks are not published to the (nonexistent) NFIT table. The logic is fine, but the info messages are not concatenated correctly from multiple string literals -- the second parts are passed as (unused) arguments to DEBUG(). Fix the typos. Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Feng Tian <feng.tian@intel.com> Cc: Hao Wu <hao.a.wu@intel.com> Cc: Leif Lindholm <leif.lindholm@linaro.org> Cc: Star Zeng <star.zeng@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Feng Tian <feng.tian@intel.com> Reviewed-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
parent
3df29b5d16
commit
76874be3d4
|
@ -74,7 +74,7 @@ RamDiskAcpiCheck (
|
|||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((
|
||||
EFI_D_INFO,
|
||||
"RamDiskAcpiCheck: Cannot locate the EFI ACPI Table Protocol,",
|
||||
"RamDiskAcpiCheck: Cannot locate the EFI ACPI Table Protocol, "
|
||||
"unable to publish RAM disks to NFIT.\n"
|
||||
));
|
||||
return;
|
||||
|
@ -91,7 +91,7 @@ RamDiskAcpiCheck (
|
|||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((
|
||||
EFI_D_INFO,
|
||||
"RamDiskAcpiCheck: Cannot locate the EFI ACPI Sdt Protocol,",
|
||||
"RamDiskAcpiCheck: Cannot locate the EFI ACPI Sdt Protocol, "
|
||||
"unable to publish RAM disks to NFIT.\n"
|
||||
));
|
||||
mAcpiTableProtocol = NULL;
|
||||
|
|
Loading…
Reference in New Issue