diff options
author | Laszlo Ersek <lersek@redhat.com> | 2017-03-17 19:57:09 +0100 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2017-03-20 11:06:36 +0100 |
commit | 76874be3d411bf8daac051718e20932e0bf97d70 (patch) | |
tree | 66561e9b04cab3b0e80ba9b4812d854fd5b22327 /MdeModulePkg/Universal | |
parent | 3df29b5d16d39b335b7daca625b3781e1da9920c (diff) | |
download | edk2-platforms-76874be3d411bf8daac051718e20932e0bf97d70.tar.xz |
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>
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r-- | MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDriver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDriver.c b/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDriver.c index d1dd13a819..b2bafc58bb 100644 --- a/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDriver.c +++ b/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDriver.c @@ -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;
|