* [PATCH 1/2] MdePkg/IndustryStandard: Fix a typo in UefiTcgPlatform.h
2018-12-11 1:31 [PATCH 0/2] Fix typos in MdePkg and SecurityPkg Shenglei Zhang
@ 2018-12-11 1:31 ` Shenglei Zhang
2018-12-11 1:31 ` [PATCH 2/2] SecurityPkg/Tcg: Fix typos in TcgDxe.c and Tcg2Dxe.c Shenglei Zhang
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Shenglei Zhang @ 2018-12-11 1:31 UTC (permalink / raw)
To: edk2-devel; +Cc: Michael D Kinney, Liming Gao
Change EFI_RETURNING_FROM_EFI_APPLICATOIN to
EFI_RETURNING_FROM_EFI_APPLICATION.
https://bugzilla.tianocore.org/show_bug.cgi?id=1368
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
---
MdePkg/Include/IndustryStandard/UefiTcgPlatform.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/MdePkg/Include/IndustryStandard/UefiTcgPlatform.h b/MdePkg/Include/IndustryStandard/UefiTcgPlatform.h
index 2d223f4ea7..96784708ae 100644
--- a/MdePkg/Include/IndustryStandard/UefiTcgPlatform.h
+++ b/MdePkg/Include/IndustryStandard/UefiTcgPlatform.h
@@ -56,7 +56,7 @@
#define EFI_CALLING_EFI_APPLICATION \
"Calling EFI Application from Boot Option"
-#define EFI_RETURNING_FROM_EFI_APPLICATOIN \
+#define EFI_RETURNING_FROM_EFI_APPLICATION \
"Returning from EFI Application from Boot Option"
#define EFI_EXIT_BOOT_SERVICES_INVOCATION \
"Exit Boot Services Invocation"
--
2.18.0.windows.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/2] SecurityPkg/Tcg: Fix typos in TcgDxe.c and Tcg2Dxe.c
2018-12-11 1:31 [PATCH 0/2] Fix typos in MdePkg and SecurityPkg Shenglei Zhang
2018-12-11 1:31 ` [PATCH 1/2] MdePkg/IndustryStandard: Fix a typo in UefiTcgPlatform.h Shenglei Zhang
@ 2018-12-11 1:31 ` Shenglei Zhang
2018-12-17 3:32 ` Zhang, Chao B
2018-12-17 10:08 ` [PATCH 0/2] Fix typos in MdePkg and SecurityPkg Philippe Mathieu-Daudé
2019-01-17 16:44 ` Yao, Jiewen
3 siblings, 1 reply; 8+ messages in thread
From: Shenglei Zhang @ 2018-12-11 1:31 UTC (permalink / raw)
To: edk2-devel; +Cc: Chao Zhang, Jiewen Yao
Change EFI_RETURNING_FROM_EFI_APPLICATOIN to
EFI_RETURNING_FROM_EFI_APPLICATION.
https://bugzilla.tianocore.org/show_bug.cgi?id=1368
Cc: Chao Zhang <chao.b.zhang@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
---
SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c | 4 ++--
SecurityPkg/Tcg/TcgDxe/TcgDxe.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c b/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c
index aa463b287e..662637f3e3 100644
--- a/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c
+++ b/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c
@@ -2314,10 +2314,10 @@ OnReadyToBoot (
//
Status = TcgMeasureAction (
4,
- EFI_RETURNING_FROM_EFI_APPLICATOIN
+ EFI_RETURNING_FROM_EFI_APPLICATION
);
if (EFI_ERROR (Status)) {
- DEBUG ((EFI_D_ERROR, "%a not Measured. Error!\n", EFI_RETURNING_FROM_EFI_APPLICATOIN));
+ DEBUG ((EFI_D_ERROR, "%a not Measured. Error!\n", EFI_RETURNING_FROM_EFI_APPLICATION));
}
//
diff --git a/SecurityPkg/Tcg/TcgDxe/TcgDxe.c b/SecurityPkg/Tcg/TcgDxe/TcgDxe.c
index 21837fe3d3..3889fb4a81 100644
--- a/SecurityPkg/Tcg/TcgDxe/TcgDxe.c
+++ b/SecurityPkg/Tcg/TcgDxe/TcgDxe.c
@@ -1180,10 +1180,10 @@ OnReadyToBoot (
// 6. Not first attempt, meaning a return from last attempt
//
Status = TcgMeasureAction (
- EFI_RETURNING_FROM_EFI_APPLICATOIN
+ EFI_RETURNING_FROM_EFI_APPLICATION
);
if (EFI_ERROR (Status)) {
- DEBUG ((EFI_D_ERROR, "%a not Measured. Error!\n", EFI_RETURNING_FROM_EFI_APPLICATOIN));
+ DEBUG ((EFI_D_ERROR, "%a not Measured. Error!\n", EFI_RETURNING_FROM_EFI_APPLICATION));
}
}
--
2.18.0.windows.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] SecurityPkg/Tcg: Fix typos in TcgDxe.c and Tcg2Dxe.c
2018-12-11 1:31 ` [PATCH 2/2] SecurityPkg/Tcg: Fix typos in TcgDxe.c and Tcg2Dxe.c Shenglei Zhang
@ 2018-12-17 3:32 ` Zhang, Chao B
0 siblings, 0 replies; 8+ messages in thread
From: Zhang, Chao B @ 2018-12-17 3:32 UTC (permalink / raw)
To: Zhang, Shenglei, edk2-devel@lists.01.org; +Cc: Yao, Jiewen
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
-----Original Message-----
From: Zhang, Shenglei
Sent: Tuesday, December 11, 2018 9:32 AM
To: edk2-devel@lists.01.org
Cc: Zhang, Chao B <chao.b.zhang@intel.com>; Yao, Jiewen <jiewen.yao@intel.com>
Subject: [PATCH 2/2] SecurityPkg/Tcg: Fix typos in TcgDxe.c and Tcg2Dxe.c
Change EFI_RETURNING_FROM_EFI_APPLICATOIN to EFI_RETURNING_FROM_EFI_APPLICATION.
https://bugzilla.tianocore.org/show_bug.cgi?id=1368
Cc: Chao Zhang <chao.b.zhang@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
---
SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c | 4 ++--
SecurityPkg/Tcg/TcgDxe/TcgDxe.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c b/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c
index aa463b287e..662637f3e3 100644
--- a/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c
+++ b/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c
@@ -2314,10 +2314,10 @@ OnReadyToBoot (
//
Status = TcgMeasureAction (
4,
- EFI_RETURNING_FROM_EFI_APPLICATOIN
+ EFI_RETURNING_FROM_EFI_APPLICATION
);
if (EFI_ERROR (Status)) {
- DEBUG ((EFI_D_ERROR, "%a not Measured. Error!\n", EFI_RETURNING_FROM_EFI_APPLICATOIN));
+ DEBUG ((EFI_D_ERROR, "%a not Measured. Error!\n",
+ EFI_RETURNING_FROM_EFI_APPLICATION));
}
//
diff --git a/SecurityPkg/Tcg/TcgDxe/TcgDxe.c b/SecurityPkg/Tcg/TcgDxe/TcgDxe.c index 21837fe3d3..3889fb4a81 100644
--- a/SecurityPkg/Tcg/TcgDxe/TcgDxe.c
+++ b/SecurityPkg/Tcg/TcgDxe/TcgDxe.c
@@ -1180,10 +1180,10 @@ OnReadyToBoot (
// 6. Not first attempt, meaning a return from last attempt
//
Status = TcgMeasureAction (
- EFI_RETURNING_FROM_EFI_APPLICATOIN
+ EFI_RETURNING_FROM_EFI_APPLICATION
);
if (EFI_ERROR (Status)) {
- DEBUG ((EFI_D_ERROR, "%a not Measured. Error!\n", EFI_RETURNING_FROM_EFI_APPLICATOIN));
+ DEBUG ((EFI_D_ERROR, "%a not Measured. Error!\n",
+ EFI_RETURNING_FROM_EFI_APPLICATION));
}
}
--
2.18.0.windows.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] Fix typos in MdePkg and SecurityPkg
2018-12-11 1:31 [PATCH 0/2] Fix typos in MdePkg and SecurityPkg Shenglei Zhang
2018-12-11 1:31 ` [PATCH 1/2] MdePkg/IndustryStandard: Fix a typo in UefiTcgPlatform.h Shenglei Zhang
2018-12-11 1:31 ` [PATCH 2/2] SecurityPkg/Tcg: Fix typos in TcgDxe.c and Tcg2Dxe.c Shenglei Zhang
@ 2018-12-17 10:08 ` Philippe Mathieu-Daudé
2018-12-17 10:27 ` Laszlo Ersek
2019-01-17 16:44 ` Yao, Jiewen
3 siblings, 1 reply; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2018-12-17 10:08 UTC (permalink / raw)
To: Shenglei Zhang, edk2-devel
Cc: Michael D Kinney, Jiewen Yao, Chao Zhang, Liming Gao
Hi,
On 12/11/18 2:31 AM, Shenglei Zhang wrote:
> Change EFI_RETURNING_FROM_EFI_APPLICATOIN to
> EFI_RETURNING_FROM_EFI_APPLICATION.
>
> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> Cc: Liming Gao <liming.gao@intel.com>
> Cc: Chao Zhang <chao.b.zhang@intel.com>
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> Shenglei Zhang (2):
> MdePkg/IndustryStandard: Fix a typo in UefiTcgPlatform.h
> SecurityPkg/Tcg: Fix typos in TcgDxe.c and Tcg2Dxe.c
>
> MdePkg/Include/IndustryStandard/UefiTcgPlatform.h | 2 +-
> SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c | 4 ++--
> SecurityPkg/Tcg/TcgDxe/TcgDxe.c | 4 ++--
> 3 files changed, 5 insertions(+), 5 deletions(-)
>
NACK, this change has to be in the same patch to be bisectable.
However, if you resend the same change squashed in a single patch, you
can directly add my:
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Regards,
Phil.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] Fix typos in MdePkg and SecurityPkg
2018-12-17 10:08 ` [PATCH 0/2] Fix typos in MdePkg and SecurityPkg Philippe Mathieu-Daudé
@ 2018-12-17 10:27 ` Laszlo Ersek
2018-12-17 10:45 ` Philippe Mathieu-Daudé
0 siblings, 1 reply; 8+ messages in thread
From: Laszlo Ersek @ 2018-12-17 10:27 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: Shenglei Zhang, edk2-devel, Michael D Kinney, Jiewen Yao,
Liming Gao, Chao Zhang
On 12/17/18 11:08, Philippe Mathieu-Daudé wrote:
> Hi,
>
> On 12/11/18 2:31 AM, Shenglei Zhang wrote:
>> Change EFI_RETURNING_FROM_EFI_APPLICATOIN to
>> EFI_RETURNING_FROM_EFI_APPLICATION.
>>
>> Cc: Michael D Kinney <michael.d.kinney@intel.com>
>> Cc: Liming Gao <liming.gao@intel.com>
>> Cc: Chao Zhang <chao.b.zhang@intel.com>
>> Cc: Jiewen Yao <jiewen.yao@intel.com>
>> Shenglei Zhang (2):
>> MdePkg/IndustryStandard: Fix a typo in UefiTcgPlatform.h
>> SecurityPkg/Tcg: Fix typos in TcgDxe.c and Tcg2Dxe.c
>>
>> MdePkg/Include/IndustryStandard/UefiTcgPlatform.h | 2 +-
>> SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c | 4 ++--
>> SecurityPkg/Tcg/TcgDxe/TcgDxe.c | 4 ++--
>> 3 files changed, 5 insertions(+), 5 deletions(-)
>>
>
> NACK, this change has to be in the same patch to be bisectable.
>
> However, if you resend the same change squashed in a single patch, you
> can directly add my:
> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Good catch! Bisectability is important!
An alternative approach to yours could be: first, introduce the
correctly spelled macro (with the same value); second, update the
references; third, remove the misspelled macro. This would be *slightly*
more idiomatic for edk2, where we tend to avoid cross-package patches,
if we can.
Personally I'd be fine with either approach in this case.
Thanks!
Laszlo
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] Fix typos in MdePkg and SecurityPkg
2018-12-17 10:27 ` Laszlo Ersek
@ 2018-12-17 10:45 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2018-12-17 10:45 UTC (permalink / raw)
To: Laszlo Ersek
Cc: Shenglei Zhang, edk2-devel, Michael D Kinney, Jiewen Yao,
Liming Gao, Chao Zhang
On 12/17/18 11:27 AM, Laszlo Ersek wrote:
> On 12/17/18 11:08, Philippe Mathieu-Daudé wrote:
>> Hi,
>>
>> On 12/11/18 2:31 AM, Shenglei Zhang wrote:
>>> Change EFI_RETURNING_FROM_EFI_APPLICATOIN to
>>> EFI_RETURNING_FROM_EFI_APPLICATION.
>>>
>>> Cc: Michael D Kinney <michael.d.kinney@intel.com>
>>> Cc: Liming Gao <liming.gao@intel.com>
>>> Cc: Chao Zhang <chao.b.zhang@intel.com>
>>> Cc: Jiewen Yao <jiewen.yao@intel.com>
>>> Shenglei Zhang (2):
>>> MdePkg/IndustryStandard: Fix a typo in UefiTcgPlatform.h
>>> SecurityPkg/Tcg: Fix typos in TcgDxe.c and Tcg2Dxe.c
>>>
>>> MdePkg/Include/IndustryStandard/UefiTcgPlatform.h | 2 +-
>>> SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c | 4 ++--
>>> SecurityPkg/Tcg/TcgDxe/TcgDxe.c | 4 ++--
>>> 3 files changed, 5 insertions(+), 5 deletions(-)
>>>
>>
>> NACK, this change has to be in the same patch to be bisectable.
>>
>> However, if you resend the same change squashed in a single patch, you
>> can directly add my:
>> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
>
> Good catch! Bisectability is important!
>
> An alternative approach to yours could be: first, introduce the
> correctly spelled macro (with the same value); second, update the
> references; third, remove the misspelled macro. This would be *slightly*
> more idiomatic for edk2, where we tend to avoid cross-package patches,
> if we can.
TIL "avoid cross-package patches" (for edk2).
While Laszlo's alternative looks overkill, it is also perfect =)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] Fix typos in MdePkg and SecurityPkg
2018-12-11 1:31 [PATCH 0/2] Fix typos in MdePkg and SecurityPkg Shenglei Zhang
` (2 preceding siblings ...)
2018-12-17 10:08 ` [PATCH 0/2] Fix typos in MdePkg and SecurityPkg Philippe Mathieu-Daudé
@ 2019-01-17 16:44 ` Yao, Jiewen
3 siblings, 0 replies; 8+ messages in thread
From: Yao, Jiewen @ 2019-01-17 16:44 UTC (permalink / raw)
To: Zhang, Shenglei, edk2-devel@lists.01.org
Cc: Kinney, Michael D, Gao, Liming, Zhang, Chao B
Reviewed-by: Jiewen.yao@intel.com
> -----Original Message-----
> From: Zhang, Shenglei
> Sent: Monday, December 10, 2018 5:32 PM
> To: edk2-devel@lists.01.org
> Cc: Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming
> <liming.gao@intel.com>; Zhang, Chao B <chao.b.zhang@intel.com>; Yao,
> Jiewen <jiewen.yao@intel.com>
> Subject: [PATCH 0/2] Fix typos in MdePkg and SecurityPkg
>
> Change EFI_RETURNING_FROM_EFI_APPLICATOIN to
> EFI_RETURNING_FROM_EFI_APPLICATION.
>
> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> Cc: Liming Gao <liming.gao@intel.com>
> Cc: Chao Zhang <chao.b.zhang@intel.com>
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> Shenglei Zhang (2):
> MdePkg/IndustryStandard: Fix a typo in UefiTcgPlatform.h
> SecurityPkg/Tcg: Fix typos in TcgDxe.c and Tcg2Dxe.c
>
> MdePkg/Include/IndustryStandard/UefiTcgPlatform.h | 2 +-
> SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c | 4 ++--
> SecurityPkg/Tcg/TcgDxe/TcgDxe.c | 4 ++--
> 3 files changed, 5 insertions(+), 5 deletions(-)
>
> --
> 2.18.0.windows.1
^ permalink raw reply [flat|nested] 8+ messages in thread