From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from hfd-mx02.apple.com (hfd-mx02.apple.com [17.132.100.1]) by mx.groups.io with SMTP id smtpd.web10.20196.1683885321339721191 for ; Fri, 12 May 2023 02:55:21 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@apple.com header.s=20180706 header.b=wT5dq5mr; spf=pass (domain: apple.com, ip: 17.132.100.1, mailfrom: girim@apple.com) Received: from sg-mailsvcp-mta-lapp02.asia.apple.com (sg-mailsvcp-mta-lapp02.asia.apple.com [17.84.67.70]) by am11p01nt-mxp02.apple.com (Oracle Communications Messaging Server 8.1.0.22.20230228 64bit (built Feb 28 2023)) with ESMTPS id <0RUJ01A0EI84TR00@am11p01nt-mxp02.apple.com> for devel@edk2.groups.io; Fri, 12 May 2023 09:55:19 +0000 (GMT) X-Proofpoint-ORIG-GUID: euhTpgGONwcikYSJvC2uHIdwQL64opdi X-Proofpoint-GUID: euhTpgGONwcikYSJvC2uHIdwQL64opdi X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.573,18.0.942 definitions=2023-05-10_04:2023-05-05,2023-05-10 signatures=0 X-Proofpoint-Spam-Details: rule=interactive_user_notspam policy=interactive_user score=0 phishscore=0 spamscore=0 adultscore=0 mlxscore=0 mlxlogscore=865 bulkscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305100139 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=20180706; bh=YAGvbRvzges8kplLlVRIavrn25yD1NvtHtkStO4YaFo=; b=wT5dq5mrJh/gUIEWq8125cVeisHYjNN+9W3kKNB2jiLXQH89bqPaxjT8mctFWlpEbvQC T3S8IjeEAEiNMjFWfPFTxbYRg+JYpS0UX/OnI/Ly4urNK1Gs2yLfiEOiInVLFy8YtO9R SwXZv2atH8nQqGYyc/Vqm1Nyh4Hy70YvHC/+bZUlmd45YtLaQee9/TKd/FlCG/6aA/bn JoonFIdVLPeaWcIBJ2HInEKjLX1jwipB3+TuAeH5A1ZecEiVxuGVCrW7VOdUiONjJnZa w5b+3QhB8zntl9QKFvQqal9EbVAfgcixrQ0c/JMzTB6l1HHNnCemiXBLljEIsVK4UrPR Jw== Received: from sg-mailsvcp-relay-lapp02.asia.apple.com (sg-mailsvcp-relay-lapp02.asia.apple.com [17.84.71.218]) by sg-mailsvcp-mta-lapp02.asia.apple.com (Oracle Communications Messaging Server 8.1.0.22.20230228 64bit (built Feb 28 2023)) with ESMTPS id <0RUJ00Z6YI83EY00@sg-mailsvcp-mta-lapp02.asia.apple.com>; Fri, 12 May 2023 17:55:16 +0800 (+08) Received: from process_milters-daemon.sg-mailsvcp-relay-lapp02.asia.apple.com by sg-mailsvcp-relay-lapp02.asia.apple.com (Oracle Communications Messaging Server 8.1.0.22.20230228 64bit (built Feb 28 2023)) id <0RUJ00L00HZEXH00@sg-mailsvcp-relay-lapp02.asia.apple.com>; Fri, 12 May 2023 17:55:15 +0800 (+08) X-Va-A: X-Va-T-CD: 3a2c4b67349838e305a7a1f00570e43c X-Va-E-CD: c577cd38a0f1537fca3b5141703b87e5 X-Va-R-CD: 81500aadce9aa37393ed8fa1acaa3415 X-Va-ID: 51efca57-afd2-49d7-8ca5-ae2921b55064 X-Va-CD: 0 X-V-A: X-V-T-CD: 3a2c4b67349838e305a7a1f00570e43c X-V-E-CD: c577cd38a0f1537fca3b5141703b87e5 X-V-R-CD: 81500aadce9aa37393ed8fa1acaa3415 X-V-ID: a931544a-2c1e-499c-928e-590c58ac306a X-V-CD: 0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.573,18.0.942 definitions=2023-05-12_06:2023-05-05,2023-05-12 signatures=0 Received: from sg-mailsvcp-relay-lapp03.asia.apple.com (unknown [10.107.29.87]) by sg-mailsvcp-relay-lapp02.asia.apple.com (Oracle Communications Messaging Server 8.1.0.22.20230228 64bit (built Feb 28 2023)) with ESMTP id <0RUJ00S4CI7YAS00@sg-mailsvcp-relay-lapp02.asia.apple.com>; Fri, 12 May 2023 17:55:11 +0800 (+08) From: "Giri Mudusuru" To: devel@edk2.groups.io Cc: Giri Mudusuru , Hao A Wu , Ray Ni , Jian J Wang , Liming Gao , Andrew Fish Subject: [PATCH] MdeModulePkg SdMmcPciHcDxe: SD/MMC capability debug print is incorrect Date: Fri, 12 May 2023 15:24:54 +0530 Message-id: <7ba00d73bd53c401b9fcd6fd4a3a79f9e43d9662.1683885276.git.girim@apple.com> X-Mailer: git-send-email 2.39.2 (Apple Git-144) MIME-version: 1.0 Content-transfer-encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4394 Fix DumpCapabilityReg() debug log to print 64 bit capability instead of 32 = bit pointer Cc: Hao A Wu Cc: Ray Ni Cc: Jian J Wang Cc: Liming Gao Cc: Andrew Fish Signed-off-by: Giri Mudusuru --- MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHci.c b/MdeModulePk= g/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHci.c index aab6815328..2e7497a89d 100644 --- a/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHci.c +++ b/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHci.c @@ -30,7 +30,7 @@ DumpCapabilityReg ( //=0D // Dump Capability Data=0D //=0D - DEBUG ((DEBUG_INFO, " =3D=3D Slot [%d] Capability is 0x%x =3D=3D\n", Slo= t, Capability));=0D + DEBUG ((DEBUG_INFO, " =3D=3D Slot [%d] Capability is 0x%llx =3D=3D\n", S= lot, *(UINT64 *)Capability));=0D DEBUG ((DEBUG_INFO, " Timeout Clk Freq %d%a\n", Capability->TimeoutFr= eq, (Capability->TimeoutUnit) ? "MHz" : "KHz"));=0D DEBUG ((DEBUG_INFO, " Base Clk Freq %dMHz\n", Capability->BaseClkF= req));=0D DEBUG ((DEBUG_INFO, " Max Blk Len %dbytes\n", 512 * (1 << Capabi= lity->MaxBlkLen)));=0D --=20 2.39.2 (Apple Git-144)