summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Bus/Sd
diff options
context:
space:
mode:
authorDandan Bi <dandan.bi@intel.com>2016-12-19 11:16:19 +0800
committerHao Wu <hao.a.wu@intel.com>2016-12-20 10:51:20 +0800
commit072b2327c137482a89bca1c7805f739af571d304 (patch)
treee4c8f3529dfff92124aeea4d8d13471f7f5c47ca /MdeModulePkg/Bus/Sd
parent789b86acfb401f263e86a15c73fd2879c3a70413 (diff)
downloadedk2-072b2327c137482a89bca1c7805f739af571d304.tar.gz
edk2-072b2327c137482a89bca1c7805f739af571d304.tar.bz2
edk2-072b2327c137482a89bca1c7805f739af571d304.zip
MdeModulePkg/EmmcDxe: Avoid Non-Boolean type used as Boolean
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com>
Diffstat (limited to 'MdeModulePkg/Bus/Sd')
-rw-r--r--MdeModulePkg/Bus/Sd/EmmcDxe/EmmcBlockIo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Bus/Sd/EmmcDxe/EmmcBlockIo.c b/MdeModulePkg/Bus/Sd/EmmcDxe/EmmcBlockIo.c
index fc705e17d5..c432d26801 100644
--- a/MdeModulePkg/Bus/Sd/EmmcDxe/EmmcBlockIo.c
+++ b/MdeModulePkg/Bus/Sd/EmmcDxe/EmmcBlockIo.c
@@ -901,7 +901,7 @@ EmmcReadWrite (
if (EFI_ERROR (Status)) {
return Status;
}
- DEBUG ((EFI_D_INFO, "Emmc%a(): Part %d Lba 0x%x BlkNo 0x%x Event %p with %r\n", IsRead ? "Read " : "Write", Partition->PartitionType, Lba, BlockNum, Token ? Token->Event : NULL, Status));
+ DEBUG ((EFI_D_INFO, "Emmc%a(): Part %d Lba 0x%x BlkNo 0x%x Event %p with %r\n", IsRead ? "Read " : "Write", Partition->PartitionType, Lba, BlockNum, (Token != NULL) ? Token->Event : NULL, Status));
Lba += BlockNum;
Buffer = (UINT8*)Buffer + BufferSize;