[edk2-devel] [PATCH 1/1] OvmfPkg/SmbiosPlatformDxe: tweak fallback release date

Ard Biesheuvel ardb at kernel.org
Thu Mar 9 09:19:54 UTC 2023


On Thu, 9 Mar 2023 at 10:02, Gerd Hoffmann <kraxel at redhat.com> wrote:
>
> In case PcdFirmwareReleaseDateString is not set use a valid date
> as fallback.  Using "unknown" makes Windows unhappy.
>
> Fixes: 4cb94f20b002 ("OvmfPkg/SmbiosPlatformDxe: use PcdFirmware*")
> Reported-by: ruifeng.gao at intel.com
> Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

Ack. Will queue this one up as well, thanks.

> ---
>  OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.c b/OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.c
> index dc1e6aed634f..0ca37760455c 100644
> --- a/OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.c
> +++ b/OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.c
> @@ -160,7 +160,7 @@ InstallAllStructures (
>      DateStr = (CHAR16 *)FixedPcdGetPtr (PcdFirmwareReleaseDateString);
>      DateLen = StrLen (DateStr);
>      if (DateLen < 3) {
> -      DateStr = L"unknown";
> +      DateStr = L"2/2/2022";
>        DateLen = StrLen (DateStr);
>      }
>
> --
> 2.39.2
>
>
>
> 
>
>


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#100925): https://edk2.groups.io/g/devel/message/100925
Mute This Topic: https://groups.io/mt/97492398/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list