]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/EmmcDxe: Avoid Non-Boolean type used as Boolean
authorDandan Bi <dandan.bi@intel.com>
Mon, 19 Dec 2016 03:16:19 +0000 (11:16 +0800)
committerHao Wu <hao.a.wu@intel.com>
Tue, 20 Dec 2016 02:51:20 +0000 (10:51 +0800)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
MdeModulePkg/Bus/Sd/EmmcDxe/EmmcBlockIo.c

index fc705e17d5b489df50d2bde99983900d1b951b18..c432d268012db4b5baa07a987efafef380db64cf 100644 (file)
@@ -901,7 +901,7 @@ EmmcReadWrite (
     if (EFI_ERROR (Status)) {\r
       return Status;\r
     }\r
-    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));\r
+    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));\r
 \r
     Lba   += BlockNum;\r
     Buffer = (UINT8*)Buffer + BufferSize;\r