public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH] SecurityPkg Tcg2ConfigDxe: Typecast to (CHAR8*) as para of AsciiStrSize
@ 2017-01-09  2:05 Star Zeng
  2017-01-09  2:26 ` Zhang, Chao B
  2017-01-09  3:06 ` Bi, Dandan
  0 siblings, 2 replies; 3+ messages in thread
From: Star Zeng @ 2017-01-09  2:05 UTC (permalink / raw)
  To: edk2-devel; +Cc: Star Zeng, Dandan Bi, Jiewen Yao, Chao Zhang

Cc: Dandan Bi <dandan.bi@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Chao Zhang <chao.b.zhang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
---
 SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c | 4 ++--
 SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c
index ad7cd54e6cb0..34828eed7d64 100644
--- a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c
+++ b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c
@@ -90,7 +90,7 @@ InitializeTcg2VersionInfo (
   CopyMem (
     &PcdTcg2PpiVersion,
     PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer),
-    AsciiStrSize (PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer))
+    AsciiStrSize ((CHAR8 *) PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer))
     );
 
   //
@@ -188,7 +188,7 @@ InitializeTcg2VersionInfo (
   CopyMem (
     &PcdTcg2PpiVersion,
     PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer),
-    AsciiStrSize (PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer))
+    AsciiStrSize ((CHAR8 *) PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer))
     );
   if (PcdTcg2PpiVersion != Tcg2Version.PpiVersion) {
     DEBUG ((DEBUG_WARN, "WARNING: PcdTcgPhysicalPresenceInterfaceVer is not DynamicHii type and maps to TCG2_VERSION.PpiVersion\n"));
diff --git a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c
index ecd7ab981a3d..4432daea81b6 100644
--- a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c
+++ b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c
@@ -495,7 +495,7 @@ Tcg2VersionInfoCallback (
     CopyMem (
       &PcdTcg2PpiVersion,
       PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer),
-      AsciiStrSize (PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer))
+      AsciiStrSize ((CHAR8 *) PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer))
       );
     if (PcdTcg2PpiVersion != Value->u64) {
       CreatePopUp (
-- 
2.7.0.windows.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] SecurityPkg Tcg2ConfigDxe: Typecast to (CHAR8*) as para of AsciiStrSize
  2017-01-09  2:05 [PATCH] SecurityPkg Tcg2ConfigDxe: Typecast to (CHAR8*) as para of AsciiStrSize Star Zeng
@ 2017-01-09  2:26 ` Zhang, Chao B
  2017-01-09  3:06 ` Bi, Dandan
  1 sibling, 0 replies; 3+ messages in thread
From: Zhang, Chao B @ 2017-01-09  2:26 UTC (permalink / raw)
  To: Zeng, Star, edk2-devel@lists.01.org; +Cc: Bi, Dandan, Yao, Jiewen

Reviewed-by: Chao Zhang<chao.b.zhang@intel.com>

-----Original Message-----
From: Zeng, Star 
Sent: Monday, January 9, 2017 10:06 AM
To: edk2-devel@lists.01.org
Cc: Zeng, Star <star.zeng@intel.com>; Bi, Dandan <dandan.bi@intel.com>; Yao, Jiewen <jiewen.yao@intel.com>; Zhang, Chao B <chao.b.zhang@intel.com>
Subject: [PATCH] SecurityPkg Tcg2ConfigDxe: Typecast to (CHAR8*) as para of AsciiStrSize

Cc: Dandan Bi <dandan.bi@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Chao Zhang <chao.b.zhang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
---
 SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c | 4 ++--
 SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c
index ad7cd54e6cb0..34828eed7d64 100644
--- a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c
+++ b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c
@@ -90,7 +90,7 @@ InitializeTcg2VersionInfo (
   CopyMem (
     &PcdTcg2PpiVersion,
     PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer),
-    AsciiStrSize (PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer))
+    AsciiStrSize ((CHAR8 *) PcdGetPtr 
+ (PcdTcgPhysicalPresenceInterfaceVer))
     );
 
   //
@@ -188,7 +188,7 @@ InitializeTcg2VersionInfo (
   CopyMem (
     &PcdTcg2PpiVersion,
     PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer),
-    AsciiStrSize (PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer))
+    AsciiStrSize ((CHAR8 *) PcdGetPtr 
+ (PcdTcgPhysicalPresenceInterfaceVer))
     );
   if (PcdTcg2PpiVersion != Tcg2Version.PpiVersion) {
     DEBUG ((DEBUG_WARN, "WARNING: PcdTcgPhysicalPresenceInterfaceVer is not DynamicHii type and maps to TCG2_VERSION.PpiVersion\n")); diff --git a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c
index ecd7ab981a3d..4432daea81b6 100644
--- a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c
+++ b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c
@@ -495,7 +495,7 @@ Tcg2VersionInfoCallback (
     CopyMem (
       &PcdTcg2PpiVersion,
       PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer),
-      AsciiStrSize (PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer))
+      AsciiStrSize ((CHAR8 *) PcdGetPtr 
+ (PcdTcgPhysicalPresenceInterfaceVer))
       );
     if (PcdTcg2PpiVersion != Value->u64) {
       CreatePopUp (
--
2.7.0.windows.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] SecurityPkg Tcg2ConfigDxe: Typecast to (CHAR8*) as para of AsciiStrSize
  2017-01-09  2:05 [PATCH] SecurityPkg Tcg2ConfigDxe: Typecast to (CHAR8*) as para of AsciiStrSize Star Zeng
  2017-01-09  2:26 ` Zhang, Chao B
@ 2017-01-09  3:06 ` Bi, Dandan
  1 sibling, 0 replies; 3+ messages in thread
From: Bi, Dandan @ 2017-01-09  3:06 UTC (permalink / raw)
  To: Zeng, Star, edk2-devel@lists.01.org; +Cc: Yao, Jiewen, Zhang, Chao B

Reviewed-by: Dandan Bi <dandan.bi@intel.com>

Thanks,
Dandan

-----Original Message-----
From: Zeng, Star 
Sent: Monday, January 9, 2017 10:06 AM
To: edk2-devel@lists.01.org
Cc: Zeng, Star <star.zeng@intel.com>; Bi, Dandan <dandan.bi@intel.com>; Yao, Jiewen <jiewen.yao@intel.com>; Zhang, Chao B <chao.b.zhang@intel.com>
Subject: [PATCH] SecurityPkg Tcg2ConfigDxe: Typecast to (CHAR8*) as para of AsciiStrSize

Cc: Dandan Bi <dandan.bi@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Chao Zhang <chao.b.zhang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
---
 SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c | 4 ++--
 SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c
index ad7cd54e6cb0..34828eed7d64 100644
--- a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c
+++ b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c
@@ -90,7 +90,7 @@ InitializeTcg2VersionInfo (
   CopyMem (
     &PcdTcg2PpiVersion,
     PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer),
-    AsciiStrSize (PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer))
+    AsciiStrSize ((CHAR8 *) PcdGetPtr 
+ (PcdTcgPhysicalPresenceInterfaceVer))
     );
 
   //
@@ -188,7 +188,7 @@ InitializeTcg2VersionInfo (
   CopyMem (
     &PcdTcg2PpiVersion,
     PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer),
-    AsciiStrSize (PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer))
+    AsciiStrSize ((CHAR8 *) PcdGetPtr 
+ (PcdTcgPhysicalPresenceInterfaceVer))
     );
   if (PcdTcg2PpiVersion != Tcg2Version.PpiVersion) {
     DEBUG ((DEBUG_WARN, "WARNING: PcdTcgPhysicalPresenceInterfaceVer is not DynamicHii type and maps to TCG2_VERSION.PpiVersion\n")); diff --git a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c
index ecd7ab981a3d..4432daea81b6 100644
--- a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c
+++ b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c
@@ -495,7 +495,7 @@ Tcg2VersionInfoCallback (
     CopyMem (
       &PcdTcg2PpiVersion,
       PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer),
-      AsciiStrSize (PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer))
+      AsciiStrSize ((CHAR8 *) PcdGetPtr 
+ (PcdTcgPhysicalPresenceInterfaceVer))
       );
     if (PcdTcg2PpiVersion != Value->u64) {
       CreatePopUp (
--
2.7.0.windows.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-01-09  3:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-09  2:05 [PATCH] SecurityPkg Tcg2ConfigDxe: Typecast to (CHAR8*) as para of AsciiStrSize Star Zeng
2017-01-09  2:26 ` Zhang, Chao B
2017-01-09  3:06 ` Bi, Dandan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox