From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web11.8937.1678352534114339375 for ; Thu, 09 Mar 2023 01:02:14 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IBER2sTw; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1678352533; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2COphyB7QEO7kylHUqGwKGbGVPVwymsUC96kjj+dl2c=; b=IBER2sTwLvj6o6NqqUf/9VdwLY2n2FdYqcWJrBTtKm3mF62QoIPszL0YC4jZ1Rw5BFzRug YSzCOl3aHTiZgcitFNWnGd/vn5i6mNqU8iuT3qFT828rKrfFv4yZf51RgmWR3f9g2fDrgc euhA9YdgXzt1YxQNSZexcTLGeGcU3CU= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-532-ebNbBw9AOIqM2Eq470aCUg-1; Thu, 09 Mar 2023 04:02:09 -0500 X-MC-Unique: ebNbBw9AOIqM2Eq470aCUg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3D9863C0D85F; Thu, 9 Mar 2023 09:02:09 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.39]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 036704010E36; Thu, 9 Mar 2023 09:02:08 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 93B271800082; Thu, 9 Mar 2023 10:02:07 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Jiewen Yao , Jordan Justen , Pawel Polawski , Gerd Hoffmann , Oliver Steffen , Ard Biesheuvel , ruifeng.gao@intel.com Subject: [PATCH 1/1] OvmfPkg/SmbiosPlatformDxe: tweak fallback release date Date: Thu, 9 Mar 2023 10:02:07 +0100 Message-Id: <20230309090207.404892-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true 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@intel.com Signed-off-by: Gerd Hoffmann --- 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